mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
Now catching (and printing) ALL exceptions in CommandLineController.
This commit is contained in:
parent
e3aaa58256
commit
7b49153c93
@ -140,7 +140,8 @@ class CommandLineController {
|
|||||||
} else {
|
} else {
|
||||||
println("Skipping media download because --no-media is set.")
|
println("Skipping media download because --no-media is set.")
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Throwable) {
|
||||||
|
println("An error occured!")
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
logger.error("Exception caught!", e)
|
logger.error("Exception caught!", e)
|
||||||
// If we encountered an exception, we definitely don't want to start the daemon mode now.
|
// If we encountered an exception, we definitely don't want to start the daemon mode now.
|
||||||
|
Loading…
Reference in New Issue
Block a user