Skip to content
Permalink
Browse files
Merge pull request #3 from myrle-krantz/develop
merging 2 changesets which were missed in the original migration to apache
  • Loading branch information
myrle-krantz committed Apr 4, 2018
2 parents 444b397 + 25def3b commit bc842c99de139047d700d8eb902b08ce567ae783
Showing 1 changed file with 8 additions and 2 deletions.
@@ -246,8 +246,14 @@ private CommandProcessingException handle(final Throwable th, final CommandSourc
} else {
cause = th;
}
this.logger.info(cause.getMessage(), cause);
this.updateCommandSource(commandSource, cause.getMessage());

final String failureMessage = cause.getClass().getSimpleName() + ": "
+ (cause.getMessage() != null ? cause.getMessage() : "no details available");

this.logger.warn("Error while processing command. {}", failureMessage);

this.updateCommandSource(commandSource, failureMessage);

if (declaredExceptions != null) {
if (Arrays.asList(declaredExceptions).contains(cause.getClass())) {
if (cause instanceof RuntimeException) {

0 comments on commit bc842c9

Please sign in to comment.