Skip to content

Commit

Permalink
Added catching exceptions in proceed step
Browse files Browse the repository at this point in the history
  • Loading branch information
mksplg committed Oct 13, 2014
1 parent 2fa3e89 commit 61b7910
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -165,7 +165,13 @@ public String proceed() {
* @return true, if plan state could be advanced
*/
protected boolean tryProceed(List<ValidationError> errors) {
return getWfStep().proceed(errors);
try {
return getWfStep().proceed(errors);
} catch (Exception e) {
errors.add(new ValidationError("Failed to save changes."));
log.error("Failed to save changes.", e);
}
return false;
}

/**
Expand Down

0 comments on commit 61b7910

Please sign in to comment.