Give feedback when an EPerson is created or destroyed

This commit is contained in:
Mark H. Wood
2013-01-09 13:26:26 -05:00
parent 61f0a30bd7
commit 113f287e14

View File

@@ -1289,6 +1289,7 @@ public class EPerson extends DSpaceObject
try {
eperson.update();
context.commit();
System.out.printf("Created EPerson %d\n", eperson.getID());
} catch (SQLException ex) {
context.abort();
System.err.println(ex.getMessage());
@@ -1341,6 +1342,7 @@ public class EPerson extends DSpaceObject
try {
eperson.delete();
context.commit();
System.out.printf("Deleted EPerson %d\n", eperson.getID());
} catch (SQLException ex) {
System.err.println(ex.getMessage());
System.exit(1);