X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fcacert%2Fgigi%2Futil%2FNotary.java;h=901e5ef62e46891479bf7af5f12d827d0bd4a1db;hb=0e926f650b13aba58cece09280ba24901e8fc61d;hp=24118fc3678f4f738818b0fbd7b95cdc738b62f3;hpb=c0d62ad52b65d78806431b34ed2ae24bf58c1ada;p=gigi.git diff --git a/src/org/cacert/gigi/util/Notary.java b/src/org/cacert/gigi/util/Notary.java index 24118fc3..901e5ef6 100644 --- a/src/org/cacert/gigi/util/Notary.java +++ b/src/org/cacert/gigi/util/Notary.java @@ -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();