Exit with return code 255 rather than -1 in the event of error. Also exit with

an error if an exception is caught while generating the diffs.
This commit is contained in:
Michael Bayne
2009-08-18 04:17:43 +00:00
parent 31cace3107
commit 8949cbd90a
@@ -220,7 +220,7 @@ public class Differ
if (args.length < 2) {
System.err.println(
"Usage: Differ [-verbose] new_vers_dir old_vers_dir");
System.exit(-1);
System.exit(255);
}
Differ differ = new Differ();
boolean verbose = false;
@@ -234,6 +234,7 @@ public class Differ
new File(args[aidx++]), verbose);
} catch (IOException ioe) {
System.err.println("Error: " + ioe.getMessage());
System.exit(255);
}
}