Batch error – proper exit code: EXIT_BATCH_ERROR = 8 v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 08 Jan 2014 19:59:19 +0100
branchv_0
changeset 1496a6f7b384591
parent 148 1b2f40cd432b
child 150 911b2d55bb08
Batch error – proper exit code: EXIT_BATCH_ERROR = 8
java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java	Wed Jan 08 19:35:20 2014 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java	Wed Jan 08 19:59:19 2014 +0100
     1.3 @@ -58,6 +58,7 @@
     1.4  	public static final int EXIT_CLI_VALIDATE_ERROR = 5; // doc:CLI options validation error
     1.5  	public static final int EXIT_CONFIGURATION_ERROR = 6; // doc:configuration error
     1.6  	public static final int EXIT_FORMATTING_ERROR = 7; // doc:formatting error
     1.7 +	public static final int EXIT_BATCH_ERROR = 8; // doc:batch error
     1.8  	private static final Logger log = Logger.getLogger(CLIStarter.class.getName());
     1.9  	private CLIOptions options;
    1.10  	private Configuration configuration;
    1.11 @@ -102,7 +103,7 @@
    1.12  			exitCode = EXIT_FORMATTING_ERROR;
    1.13  		} catch (BatchException e) {
    1.14  			log.log(Level.SEVERE, "Batch problem", e);
    1.15 -			exitCode = EXIT_FORMATTING_ERROR;
    1.16 +			exitCode = EXIT_BATCH_ERROR;
    1.17  		}
    1.18  
    1.19  		System.exit(exitCode);