Skip to content

Commit

Permalink
Merge pull request #66 from JingMa87/DD-425-missing-error-messages
Browse files Browse the repository at this point in the history
DD-425 missing error messages
  • Loading branch information
janvanmansum authored Apr 23, 2021
2 parents d3da68b + 60292bb commit 5cee794
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public License getByName(String name) throws FetchException {
public void save(License license) throws PersistenceException, RequestBodyException {
if (license.getId() == null) {
em.persist(license);
em.flush();
return license;
} else {
throw new RequestBodyException("There shouldn't be an ID in the request body");
}
Expand Down

0 comments on commit 5cee794

Please sign in to comment.