Skip to content

Commit

Permalink
Return error code on errors. Up patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
ullenius committed Apr 14, 2023
1 parent 3756da7 commit 8e4c16a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/se/anosh/gbstag/TagReader.java
Expand Up @@ -23,7 +23,7 @@
*/
public final class TagReader {

private static final String VERSION ="gbstag version 0.2.3";
private static final String VERSION ="gbstag version 0.2.4";
private static final String ABOUT = "code by A. Ullenius 2019";
private static final String LICENCE = "Licence: GNU General Public License - version 3.0 only";

Expand All @@ -46,7 +46,7 @@ public static void main(String[] args) {
demo.go(cmd);
} catch (ParseException ex) {
formatter.printHelp("gbs <filename>", options);
System.exit(0);
System.exit(-1);
}
}

Expand All @@ -66,7 +66,7 @@ private void go(final CommandLine cmd) {
} catch (IOException ex) {
System.out.println("I/O error");
System.out.println(ex.getMessage());
System.exit(0);
System.exit(-1);
}
}
}
Expand Down

0 comments on commit 8e4c16a

Please sign in to comment.