From 78474453d7de5fa50c32c460e18877485bc26f78 Mon Sep 17 00:00:00 2001 From: Juergen Kurzmann Date: Fri, 19 Jul 2019 11:26:19 +0200 Subject: [PATCH] Throw error on failed authorization - to exit signal-cli in case the number was registered elsewhere --- src/main/java/org/asamk/signal/manager/Manager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/asamk/signal/manager/Manager.java b/src/main/java/org/asamk/signal/manager/Manager.java index 492842ab..575dde67 100644 --- a/src/main/java/org/asamk/signal/manager/Manager.java +++ b/src/main/java/org/asamk/signal/manager/Manager.java @@ -137,6 +137,7 @@ public class Manager implements Signal { } } catch (AuthorizationFailedException e) { System.err.println("Authorization failed, was the number registered elsewhere?"); + throw e; } }