Ignore:
Timestamp:
Feb 9, 2017, 7:46:15 PM (7 years ago)
Author:
casties
Branch:
default
Message:

fix bug with empty username. add logging for JSON exceptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java

    r101 r102  
    180180            // create Annotation object from posted JSON
    181181            annot = createAnnotation(jo, entity);
    182         } catch (IOException e1) {
     182        } catch (IOException e) {
     183                logger.warning(e.toString());
    183184            setStatus(Status.SERVER_ERROR_INTERNAL);
    184185            return null;
    185186        } catch (JSONException e) {
     187                logger.warning(e.toString());
    186188            setStatus(Status.CLIENT_ERROR_BAD_REQUEST);
    187189            return null;
Note: See TracChangeset for help on using the changeset viewer.