Mercurial > hg > AnnotationManagerN4J
diff src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java @ 102:9140017e8962
fix bug with empty username. add logging for JSON exceptions.
author | casties |
---|---|
date | Thu, 09 Feb 2017 20:46:15 +0100 |
parents | 7268c3ca025b |
children | 7417f5915181 |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java Fri Feb 13 18:10:11 2015 +0100 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java Thu Feb 09 20:46:15 2017 +0100 @@ -179,10 +179,12 @@ jo.remove("id"); // create Annotation object from posted JSON annot = createAnnotation(jo, entity); - } catch (IOException e1) { + } catch (IOException e) { + logger.warning(e.toString()); setStatus(Status.SERVER_ERROR_INTERNAL); return null; } catch (JSONException e) { + logger.warning(e.toString()); setStatus(Status.CLIENT_ERROR_BAD_REQUEST); return null; }