Skip to content

Commit

Permalink
Merge pull request #927 from virtualcell/omex-export-err-msgs
Browse files Browse the repository at this point in the history
improve error message for omex export from vcell-api
  • Loading branch information
jcschaff authored Jun 25, 2023
2 parents e89d2f0 + 7165182 commit dfce0d9
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 323 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private ByteArrayRepresentation getOmex(User vcellUser, boolean bSkipUnsupported
lg.error(e);
throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, "biomodel not found");
} catch (Exception e){
throw new ResourceException(Status.SERVER_ERROR_INTERNAL, e.getMessage());
throw new ResourceException(Status.SERVER_ERROR_INTERNAL, e.toString());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public Request getRequest() {
lg.error(e);
throw new ResourceException(Status.CLIENT_ERROR_UNAUTHORIZED, "permission denied to requested resource");
} catch (Exception e){
throw new ResourceException(Status.SERVER_ERROR_INTERNAL, e.getMessage());
throw new ResourceException(Status.SERVER_ERROR_INTERNAL, e.toString());
}
}

Expand Down
Loading

0 comments on commit dfce0d9

Please sign in to comment.