X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/af4709255ab553419cc78863479894361151484b..56ee173d03baf8feede7c14aea5d9d670a047ae7:/src/main/java/org/asamk/signal/Main.java diff --git a/src/main/java/org/asamk/signal/Main.java b/src/main/java/org/asamk/signal/Main.java index 429cdc93..0a30d202 100644 --- a/src/main/java/org/asamk/signal/Main.java +++ b/src/main/java/org/asamk/signal/Main.java @@ -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; }