Skip to content

Commit 5cee794

Browse files
authored
Merge pull request #66 from JingMa87/DD-425-missing-error-messages
DD-425 missing error messages
2 parents d3da68b + 60292bb commit 5cee794

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/LicenseServiceBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public License getByName(String name) throws FetchException {
5555
public void save(License license) throws PersistenceException, RequestBodyException {
5656
if (license.getId() == null) {
5757
em.persist(license);
58+
em.flush();
59+
return license;
5860
} else {
5961
throw new RequestBodyException("There shouldn't be an ID in the request body");
6062
}

0 commit comments

Comments
 (0)