Skip to content

Commit 010e99b

Browse files
committed
feat: add more error hints
1 parent 3bbba26 commit 010e99b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

electron-app/src/processes/backendError.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ const ERROR_HINTS = [
3939
advice:
4040
"Your ADJ files contain schema errors. Check the ADJ validator log file in the logs folder for details.",
4141
},
42+
{
43+
pattern: /error reading config file/,
44+
message: "Config file not found",
45+
advice:
46+
"The configuration file could not be read. Check that the config file path is correct and the file exists.",
47+
},
48+
{
49+
pattern: /error unmarshaling toml file/,
50+
message: "Config file has errors",
51+
advice:
52+
"The configuration file contains invalid TOML. Check the config file for syntax or type errors.",
53+
},
54+
{
55+
pattern: /setting up ADJ/,
56+
message: "ADJ not available",
57+
advice:
58+
"Could not load the ADJ. If this is your first run, connect to the internet so the ADJ can be downloaded.",
59+
},
4260
];
4361

4462
/**

0 commit comments

Comments
 (0)