Commit d8505760 authored by Nigel Kukard's avatar Nigel Kukard

Fixed error code issue

parent c4cee7cb
......@@ -165,7 +165,9 @@ sub ui_start
# For everything else try open the file
} else {
# Exit with code given by the loadFile function
exit loadFile(\*STDERR,{ 'file' => $file });
if (loadFile(\*STDERR,"file='$file'") < 0) {
exit 1;
}
}
# Exit normally
exit 0;
......
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