Throw error on failed authorization

- to exit signal-cli in case the number was registered elsewhere
This commit is contained in:
Juergen Kurzmann authored and AsamK committed 2019-08-03 12:10:29 +02:00
1 parent 8574eb3f95
commit 78474453d7
1 file changed
+1
@@ -137,6 +137,7 @@ public class Manager implements Signal {
}
} catch (AuthorizationFailedException e) {
System.err.println("Authorization failed, was the number registered elsewhere?");
throw e;
}
}