Use exit code 1 if quitting because of an exception.

This commit is contained in:
Fabian Schlenz 2018-04-11 06:24:59 +02:00
parent 01590b05ee
commit 955ae42952
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ class CommandLineController(val options: CommandLineOptions) {
println("An error occurred!")
e.printStackTrace()
logger.error("Exception caught!", e)
System.exit(1)
} finally {
client.close()
println()