Skip to content

Commit

Permalink
Merge pull request #535 from tdrwenski/improve-exception
Browse files Browse the repository at this point in the history
Improve exception messages
  • Loading branch information
tdrwenski authored Sep 13, 2024
2 parents 9d16359 + 21b3e2c commit 452bcce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tds/src/main/java/thredds/server/wfs/WFSController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 452bcce

Please sign in to comment.