diff --git a/pom.xml b/pom.xml index 8fa81bd..ec0c978 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 0.0.11 + 0.0.12 diff --git a/src/main/java/de/srsoftware/widerhall/web/Rest.java b/src/main/java/de/srsoftware/widerhall/web/Rest.java index 1d9e059..13b8f58 100644 --- a/src/main/java/de/srsoftware/widerhall/web/Rest.java +++ b/src/main/java/de/srsoftware/widerhall/web/Rest.java @@ -213,10 +213,10 @@ public class Rest extends HttpServlet { return Map.of(SUCCESS,t("Mailing list '{}' was {}!",listEmail,enable ? "enabled" : "disabled")); } catch (SQLException e) { LOG.error("Failed to enable/disable mailing list: ",e); - return Map.of("error",t("Failed to update list '{}'",listEmail)); + return Map.of(ERROR,t("Failed to update list '{}'",listEmail)); } } - return Map.of("error",t("You are not allowed to edit '{}'",listEmail)); + return Map.of(ERROR,t("You are not allowed to edit '{}'",listEmail)); } private Map hideList(String listEmail, User user, boolean hide) { @@ -231,7 +231,7 @@ public class Rest extends HttpServlet { } } - return Map.of("error",t("You are not allowed to edit '{}'",listEmail)); + return Map.of(ERROR,t("You are not allowed to edit '{}'",listEmail)); } private Map testList(String listEmail, User user) {