Added more descriptive log to the ProcessRestRepository#delete method

This commit is contained in:
Raf Ponsaerts
2020-05-28 11:40:01 +02:00
parent 8045194cc3
commit ce9ba1263b

View File

@@ -174,10 +174,8 @@ public class ProcessRestRepository extends DSpaceRestRepository<ProcessRest, Int
throws AuthorizeException, RepositoryMethodNotImplementedException {
try {
processService.delete(context, processService.find(context, integer));
} catch (SQLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (SQLException | IOException e) {
log.error("Something went wrong trying to find Process with id: " + integer);
}
}