]> WPIA git - gigi.git/commitdiff
fix: spelling in GigiApiException
authorFelix Dörre <felix@dogcraft.de>
Mon, 6 Jun 2016 16:05:28 +0000 (18:05 +0200)
committerFelix Dörre <felix@dogcraft.de>
Mon, 6 Jun 2016 16:08:22 +0000 (18:08 +0200)
Change-Id: I7d0b7917e0077e24eb6443499eb0182f3ecdcf82

src/org/cacert/gigi/GigiApiException.java
src/org/cacert/gigi/dbObjects/Certificate.java

index c2a60e69fc6a47137738177973a20cf16a7a86f5..0d600b973f3284fa17fe8861e51398148b9aa448 100644 (file)
@@ -55,7 +55,7 @@ public class GigiApiException extends Exception {
         if (isInternalError()) {
             e.printStackTrace();
             out.print("<div>");
-            out.println(language.getTranslation("An internal error ouccured."));
+            out.println(language.getTranslation("An internal error occurred."));
             out.println("</div>");
         }
         HashMap<String, Object> map = new HashMap<>();
@@ -72,7 +72,7 @@ public class GigiApiException extends Exception {
 
     public void formatPlain(PrintWriter out) {
         if (isInternalError()) {
-            out.println(PLAIN_LANGUAGE.getTranslation("An internal error ouccured."));
+            out.println(PLAIN_LANGUAGE.getTranslation("An internal error occurred."));
         }
         HashMap<String, Object> map = new HashMap<>();
         for (Outputable message : messages) {
index 541272bdae1fb43a7e9b60186aaed84054309447..79b7ae7f8aeb1b73ff36604eb32c7e691c32c5d1 100644 (file)
@@ -141,7 +141,7 @@ public class Certificate implements IdCachable {
         this.owner = owner;
         this.dn = dn;
         if (dn.size() == 0) {
-            throw new GigiApiException("DN must not be empty");
+            throw new GigiApiException("DN must not be empty.");
         }
         dnString = stringifyDN(dn);
         this.md = md;