73422: Delete eperson: community feedback

This commit is contained in:
Yana De Pauw
2020-09-28 17:31:00 +02:00
parent f71202c8c3
commit 3b563e4906
8 changed files with 22 additions and 15 deletions

View File

@@ -247,7 +247,7 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
throw new AuthorizeException(ex.getMessage());
} catch (IOException ex) {
log.error("This IOException: " + ex + " occured while deleting Eperson with the ID: " + ePerson.getID());
throw new AuthorizeException(new EPersonDeletionException());
throw new AuthorizeException(ex);
} catch (EPersonDeletionException e) {
throw new IllegalStateException(e);
}