mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
parent
af4709255a
commit
56ee173d03
6 changed files with 30 additions and 3 deletions
|
@ -24,6 +24,7 @@ import net.sourceforge.argparse4j.inf.Namespace;
|
|||
|
||||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.asamk.signal.commands.exceptions.IOErrorException;
|
||||
import org.asamk.signal.commands.exceptions.RateLimitErrorException;
|
||||
import org.asamk.signal.commands.exceptions.UnexpectedErrorException;
|
||||
import org.asamk.signal.commands.exceptions.UntrustedKeyErrorException;
|
||||
import org.asamk.signal.commands.exceptions.UserErrorException;
|
||||
|
@ -116,6 +117,8 @@ public class Main {
|
|||
return 3;
|
||||
} else if (e instanceof UntrustedKeyErrorException) {
|
||||
return 4;
|
||||
} else if (e instanceof RateLimitErrorException) {
|
||||
return 5;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue