Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
include exeception text in error message (#4826)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Merschjohann <smerschjo@gmail.com>
  • Loading branch information
smerschjohann authored and kaikreuzer committed Jan 2, 2018
1 parent e6c79f0 commit 721c402
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -870,7 +870,7 @@ protected void runNow(String ruleUID, boolean considerConditions, Map<String, Ob
}
logger.debug("The rule '{}' is executed.", ruleUID);
} catch (Throwable t) {
logger.error("Fail to execute rule '{}': {}", new Object[] { ruleUID, t.getMessage() }, t);
logger.error("Failed to execute rule '{}': {}", new Object[] { ruleUID, t.getMessage() }, t);
}
// change state to IDLE only if the rule has not been DISABLED.
synchronized (this) {
Expand Down Expand Up @@ -1010,7 +1010,7 @@ private void executeActions(Rule rule, boolean stopOnFirstFail) {
updateContext(rUID, action.getId(), outputs);
}
} catch (Throwable t) {
String errMessage = "Fail to execute action: " + action.getId();
String errMessage = "Failed to execute action '" + action.getId() + "': " + t.getMessage();
if (stopOnFirstFail) {
RuntimeException re = new RuntimeException(errMessage, t);
throw re;
Expand Down

0 comments on commit 721c402

Please sign in to comment.