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
1 changed files with 2 additions and 1 deletions

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.