diff --git a/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt b/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt index 332f25a..ee4d846 100644 --- a/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt +++ b/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineController.kt @@ -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.