Skip to content

Commit

Permalink
Complete commit bae6cea (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aazhar committed Aug 19, 2015
1 parent 6680788 commit 775777e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static Response processStatelessHeaderDocument(final InputStream inputStr
response = Response.status(Status.SERVICE_UNAVAILABLE).build();
} catch (Exception exp) {
LOGGER.error("An unexpected exception occured: " + exp);
response = Response.status(Status.INTERNAL_SERVER_ERROR).build();
response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(((GrobidException)exp.getCause()).getMessage()).build();
} finally {
GrobidRestUtils.removeTempFile(originFile);
if (isparallelExec && engine != null) {
Expand Down Expand Up @@ -335,7 +335,7 @@ public static Response processStatelessFulltextAssetDocument(final InputStream i
response = Response.status(Status.SERVICE_UNAVAILABLE).build();
} catch (Exception exp) {
LOGGER.error("An unexpected exception occurs. ", exp);
response = Response.status(Status.INTERNAL_SERVER_ERROR).build();
response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(((GrobidException)exp.getCause()).getMessage()).build();
} finally {
GrobidRestUtils.removeTempFile(originFile);
if (assetPath != null) {
Expand Down Expand Up @@ -422,7 +422,7 @@ public static Response processCitationPatentPDF(final InputStream inputStream,
response = Response.status(Status.SERVICE_UNAVAILABLE).build();
} catch (Exception exp) {
LOGGER.error("An unexpected exception occurs. ", exp);
response = Response.status(Status.INTERNAL_SERVER_ERROR).build();
response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(((GrobidException)exp.getCause()).getMessage()).build();
} finally {
GrobidRestUtils.removeTempFile(originFile);
if (isparallelExec && engine != null) {
Expand Down Expand Up @@ -483,7 +483,7 @@ public static Response processCitationPatentST36(final InputStream inputStream,
response = Response.status(Status.SERVICE_UNAVAILABLE).build();
} catch (Exception exp) {
LOGGER.error("An unexpected exception occurs. ", exp);
response = Response.status(Status.INTERNAL_SERVER_ERROR).build();
response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(((GrobidException)exp.getCause()).getMessage()).build();
} finally {
GrobidRestUtils.removeTempFile(originFile);
if (isparallelExec && engine != null) {
Expand Down Expand Up @@ -559,7 +559,7 @@ public static Response processStatelessReferencesDocument(final InputStream inpu
response = Response.status(Status.SERVICE_UNAVAILABLE).build();
} catch (Exception exp) {
LOGGER.error("An unexpected exception occurs. ", exp);
response = Response.status(Status.INTERNAL_SERVER_ERROR).build();
response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(((GrobidException)exp.getCause()).getMessage()).build();
} finally {
GrobidRestUtils.removeTempFile(originFile);
if (isparallelExec && engine != null) {
Expand Down

0 comments on commit 775777e

Please sign in to comment.