Permalink
Browse files

minor improvement to error handling

  • Loading branch information...
1 parent 1905894 commit 60ecd306952c99cb8e577303441be4a05c1ca6a5 @hofmeister committed May 16, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet.java
@@ -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();
}

0 comments on commit 60ecd30

Please sign in to comment.