Throw error on failed authorization

- to exit signal-cli in case the number was registered elsewhere
This commit is contained in:
Juergen Kurzmann 2019-07-19 11:26:19 +02:00 committed by AsamK
parent 8574eb3f95
commit 78474453d7

View file

@ -137,6 +137,7 @@ public class Manager implements Signal {
} }
} catch (AuthorizationFailedException e) { } catch (AuthorizationFailedException e) {
System.err.println("Authorization failed, was the number registered elsewhere?"); System.err.println("Authorization failed, was the number registered elsewhere?");
throw e;
} }
} }