better diagnostics

This commit is contained in:
Eugene Zhuravlev
2010-02-24 12:41:22 +03:00
parent 6de512fa1a
commit 0a5d1a912c
2 changed files with 3 additions and 2 deletions
@@ -52,7 +52,8 @@ public class EvaluateExceptionUtil {
private static String reason(Throwable th) {
if(th instanceof InvalidTypeException) {
return DebuggerBundle.message("evaluation.error.type.mismatch");
final String originalReason = th.getMessage();
return DebuggerBundle.message("evaluation.error.type.mismatch") + (originalReason != null? " " + originalReason : "");
}
else if(th instanceof AbsentInformationException) {
return DebuggerBundle.message("evaluation.error.debug.info.unavailable");