diff --git a/src/main/java/gov/usgs/earthquake/nshmp/internal/www/NshmpMicronautServlet.java b/src/main/java/gov/usgs/earthquake/nshmp/internal/www/NshmpMicronautServlet.java index 72bcf611fd07ba13722feb96591337b95ef4f9b6..f5253e90f111ae42db3b54a2d364b5f7968b13b3 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/internal/www/NshmpMicronautServlet.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/internal/www/NshmpMicronautServlet.java @@ -30,7 +30,7 @@ import io.reactivex.schedulers.Schedulers; @Filter("/**") public class NshmpMicronautServlet implements HttpServerFilter { - @Value("${micronaut.server.context-path:nshmp}") + @Value("${micronaut.server.context-path:}") private String contextPath; /* diff --git a/src/main/java/gov/usgs/earthquake/nshmp/internal/www/WsUtils.java b/src/main/java/gov/usgs/earthquake/nshmp/internal/www/WsUtils.java index 97eb035c38630d64d47fbf2c0bce8dbc57221cbe..d6c78c40997e6400c807bbd0d146bce41c245102 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/internal/www/WsUtils.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/internal/www/WsUtils.java @@ -29,7 +29,7 @@ public class WsUtils { public static <T, E extends Enum<E>> T checkValue(E key, T value) { if (value == null) { - throw new IllegalStateException("Missing query key [" + key.toString() + "]"); + throw new IllegalStateException("Missing [" + key.toString() + "]"); } return value;