Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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