Skip to content

Commit

Permalink
Exit with status 2 on parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Mar 20, 2021
1 parent 1019c6a commit d201839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/pl/edu/uwb/ii/sdfeater/File.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ void parse(Molecule molecule, char format, boolean urls, boolean periodic) {
fstream.close();
} catch (IOException | NumberFormatException e) {
System.err.println("Error while parsing file: " + e.toString());
System.exit(2);
}

/* Do something AFTER file reading */
Expand Down

0 comments on commit d201839

Please sign in to comment.