Skip to content

Commit

Permalink
Do not include full error message with file paths when returning a 40…
Browse files Browse the repository at this point in the history
…4 from opendap
  • Loading branch information
Tara Drwenski authored and tdrwenski committed Sep 13, 2024
1 parent 9d16359 commit e082e26
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e082e26

Please sign in to comment.