1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-12-26 14:45:34 +00:00

Now catching (and printing) ALL exceptions in CommandLineController.

This commit is contained in:
Fabian Schlenz 2018-03-06 06:28:37 +01:00
parent e3aaa58256
commit 7b49153c93

View File

@ -140,7 +140,8 @@ class CommandLineController {
} else {
println("Skipping media download because --no-media is set.")
}
} catch (e: Exception) {
} catch (e: Throwable) {
println("An error occured!")
e.printStackTrace()
logger.error("Exception caught!", e)
// If we encountered an exception, we definitely don't want to start the daemon mode now.