diff --git a/tds/src/main/java/thredds/server/opendap/OpendapServlet.java b/tds/src/main/java/thredds/server/opendap/OpendapServlet.java index 733e88bb08..afe7de04fc 100644 --- a/tds/src/main/java/thredds/server/opendap/OpendapServlet.java +++ b/tds/src/main/java/thredds/server/opendap/OpendapServlet.java @@ -203,7 +203,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) { // plain ol' 404 } catch (FileNotFoundException e) { // e.printStackTrace(); - sendErrorResponse(response, HttpServletResponse.SC_NOT_FOUND, e.getMessage()); + sendErrorResponse(response, HttpServletResponse.SC_NOT_FOUND, "FileNotFound: No such file or directory"); // DAP2Exception bad url } catch (BadURLException e) { diff --git a/tds/src/main/java/thredds/server/wfs/WFSController.java b/tds/src/main/java/thredds/server/wfs/WFSController.java index 75fe8bdcbc..6cce499a38 100644 --- a/tds/src/main/java/thredds/server/wfs/WFSController.java +++ b/tds/src/main/java/thredds/server/wfs/WFSController.java @@ -261,8 +261,8 @@ private WFSExceptionWriter checkParametersForError(String request, String versio // Last check to see if typenames is specified, must be for GetFeature, DescribeFeatureType if (typeName == null) { return new WFSExceptionWriter( - "WFS server error. For the specifed request, parameter typename or typenames must be specified.", request, - "MissingParameterValue"); + "WFS server error. For the specifed request, parameter typename or typenames must be specified.", + "request", "MissingParameterValue"); } }