Skip to content
Snippets Groups Projects
Commit 6044f840 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Print a helpful error and exit if can't open mrc-client.ini file

parent fd2a8b60
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,10 @@ var theme_2nd_color = "\x01b\x01h";
var theme_mrc_title = "\x01w\x01hMRC";
var f = new File(js.startup_dir + 'mrc-client.ini');
f.open('r');
if (!f.open('r')) {
alert("Error " + f.error + " (" + strerror(f.error) + ") opening " + f.name);
exit(1);
}
const settings = {
root: f.iniGetObject(),
startup: f.iniGetObject('startup'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment