Commit 225acbf4 authored by rswindell's avatar rswindell
Browse files

Only complain about not being able to open ctrl/jsexec.ini, if the file exists

parent c78d025c
......@@ -1201,7 +1201,7 @@ int main(int argc, char **argv, char** env)
if((fp = iniOpenFile(ini_fname, /* create: */FALSE)) != NULL) {
ini = iniReadFile(fp);
iniCloseFile(fp);
} else {
} else if(fexist(ini_fname)) {
fprintf(stderr, "Error %d (%s) opening %s\n", errno, strerror(errno), ini_fname);
}
get_ini_values(ini, /* section (global): */NULL, &cb);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment