Skip to content

Commit

Permalink
error handling improved
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Apr 16, 2012
1 parent d8815fc commit b6399e0
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -134,12 +134,19 @@ public void execute() throws UsecaseException {
for(String t:tokens){
anno.setAnnotation(t.trim());
}
addInfoMessage("The following annotations have been saved: " + metadata);
String msg = "The following annotations have been saved: " + metadata;
log.warn("DEBUG: Message: " + msg);
addInfoMessage(msg);
} catch (Exception e) {
log.error(e, e);
addError(e.getMessage());
}

} else {
log.warn("Pre-conditions check failed for meta data content: " + metadata);
}
} else {
log.warn("contentToEdit is null!");
}
setParameter(PARAMETER_CONTINUE_PATH, PathUtil.backToRealm(getPath()) + getEditPath().substring(1));
}
Expand Down

0 comments on commit b6399e0

Please sign in to comment.