From e32924fc00dc69d036bcb59ca325db2e63566ac4 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 26 Oct 2016 21:19:05 +0200 Subject: [PATCH] CommandLineController.show_error() now also sends the error to the logger. --- .../de/fabianonline/telegram_backup/CommandLineController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java b/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java index 8424e7a..064f06d 100644 --- a/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java +++ b/src/main/java/de/fabianonline/telegram_backup/CommandLineController.java @@ -263,6 +263,7 @@ public class CommandLineController { } public static void show_error(String error) { + logger.error(error); System.out.println("ERROR: " + error); System.exit(1); }