mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +00:00
Use exit code 1 if quitting because of an exception.
This commit is contained in:
parent
01590b05ee
commit
955ae42952
@ -185,6 +185,7 @@ class CommandLineController(val options: CommandLineOptions) {
|
|||||||
println("An error occurred!")
|
println("An error occurred!")
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
logger.error("Exception caught!", e)
|
logger.error("Exception caught!", e)
|
||||||
|
System.exit(1)
|
||||||
} finally {
|
} finally {
|
||||||
client.close()
|
client.close()
|
||||||
println()
|
println()
|
||||||
|
Loading…
Reference in New Issue
Block a user