Skip to content
Snippets Groups Projects
Commit bb057b7f authored by Jesper's avatar Jesper
Browse files

Improve error handling

parent e0b10d26
Branches
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ public class RagDocBuilder extends Frontend {
System.out.println("Analyzing source tree...");
long start = System.currentTimeMillis();
int result = super.run(args, reader, parser);
if (result != 0) {
return result;
}
if (program.options().hasOption("-version")
|| program.options().hasOption("-help")
|| program.options().files().isEmpty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment