X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2FVerify.java;h=2b4cd82605cfe2ffc62fa76b2cde50e489717ad0;hp=d7e5aed6bfe405c22512822755ab108da412c759;hb=b37c20b3c3f2bc96ee9a93ac67949e523969be66;hpb=bdb770e853028d8510a941c936a290ab69cf675c diff --git a/src/org/cacert/gigi/pages/Verify.java b/src/org/cacert/gigi/pages/Verify.java index d7e5aed6..2b4cd826 100644 --- a/src/org/cacert/gigi/pages/Verify.java +++ b/src/org/cacert/gigi/pages/Verify.java @@ -62,14 +62,14 @@ public class Verify extends Page { try { target.verify(hash); } catch (IllegalArgumentException e) { - throw new GigiApiException("The email address is invalid."); + throw new PermamentFormException(new GigiApiException("Given token could not be found to complete the verification process (Email Ping).")); } return new SuccessMessageResult(new Scope(emailAddressVerified, data)); } else if ("domain".equals(type)) { try { target.verify(hash); } catch (IllegalArgumentException e) { - throw new GigiApiException("The domain is invalid."); + throw new PermamentFormException(new GigiApiException("Given token could not be found to complete the verification process (Domain Ping).")); } return new SuccessMessageResult(new Scope(domainVerified, data)); } else {