]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/Notary.java
fix: use sprintf-translation correctly
[gigi.git] / src / org / cacert / gigi / util / Notary.java
index 24118fc3678f4f738818b0fbd7b95cdc738b62f3..901e5ef62e46891479bf7af5f12d827d0bd4a1db 100644 (file)
@@ -13,6 +13,7 @@ import org.cacert.gigi.dbObjects.Group;
 import org.cacert.gigi.dbObjects.Name;
 import org.cacert.gigi.dbObjects.User;
 import org.cacert.gigi.output.DateSelector;
+import org.cacert.gigi.output.template.SprintfCommand;
 
 public class Notary {
 
@@ -135,7 +136,7 @@ public class Notary {
             } else if (type == AssuranceType.TTP_ASSISTED) {
                 assureTTP(assurer, assuree, awarded, location, date);
             } else {
-                throw new GigiApiException("Unknown Assurance type: " + type);
+                throw new GigiApiException(SprintfCommand.createSimple("Unknown Assurance type: {0}", type.toString()));
             }
             assurer.invalidateMadeAssurances();
             assuree.invalidateReceivedAssurances();