Skip to content

Commit

Permalink
Handle IOException in multipart more cleanly
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed May 12, 2015
1 parent f56b296 commit 7774683
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
log.info("File upload was too large or invalid");
errorResponse(request, response, "badimage");
return;
} catch (IOException ioe) {
log.info(ioe.toString());
errorResponse(request, response, "badurl");
return;
}
Part fileUploadPart = null;
for (Part part : parts) {
Expand Down

0 comments on commit 7774683

Please sign in to comment.