Skip to content

Commit

Permalink
minor improvement to error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmeister committed May 16, 2011
1 parent 1905894 commit 60ecd30
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ private void doPostInternal(final HttpServletRequest req, final HttpServletRespo
}
} catch(Exception ex) {
log("Could not read input", ex);
ServletUtils.sendJsonError(req, resp, 500, "could not read input");
reader.close();
return;
} finally {
reader.close();
}
Expand Down

0 comments on commit 60ecd30

Please sign in to comment.