When showing the root cause of a controller failure, show a better
message if the exception wasn't generated internally
This commit is contained in:
parent
a54cf7a757
commit
daf04c2a9c
1 changed files with 5 additions and 1 deletions
|
@ -1787,7 +1787,11 @@ public class MessagingController implements Runnable {
|
|||
rootCause = nextCause;
|
||||
}
|
||||
} while (nextCause != null);
|
||||
return rootCause.getMessage();
|
||||
if (rootCause instanceof MessagingException) {
|
||||
return rootCause.getMessage();
|
||||
} else {
|
||||
return rootCause.toString();
|
||||
}
|
||||
}
|
||||
|
||||
private void queuePendingCommand(Account account, PendingCommand command) {
|
||||
|
|
Loading…
Reference in a new issue