X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/b8a0901fbd9071f54d97e8d61fdabdfc0d4f0a7d..d783df510a58b1dbed973cbc193a57b7ad700f68:/src/main/java/org/asamk/signal/commands/VerifyCommand.java diff --git a/src/main/java/org/asamk/signal/commands/VerifyCommand.java b/src/main/java/org/asamk/signal/commands/VerifyCommand.java index b580be2a..b7fffcd2 100644 --- a/src/main/java/org/asamk/signal/commands/VerifyCommand.java +++ b/src/main/java/org/asamk/signal/commands/VerifyCommand.java @@ -16,6 +16,11 @@ import java.io.IOException; public class VerifyCommand implements RegistrationCommand { + @Override + public String getName() { + return "verify"; + } + @Override public void attachToSubparser(final Subparser subparser) { subparser.help("Verify the number using the code received via SMS or voice."); @@ -39,9 +44,9 @@ public class VerifyCommand implements RegistrationCommand { } catch (KeyBackupServicePinException e) { throw new UserErrorException("Verification failed! Invalid pin, tries remaining: " + e.getTriesRemaining()); } catch (KeyBackupSystemNoDataException e) { - throw new UnexpectedErrorException("Verification failed! No KBS data."); + throw new UnexpectedErrorException("Verification failed! No KBS data.", e); } catch (IOException e) { - throw new IOErrorException("Verify error: " + e.getMessage()); + throw new IOErrorException("Verify error: " + e.getMessage(), e); } } }