From 0a5d1a912cfbb4369934abbd94f085276d7bec9e Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 24 Feb 2010 12:40:20 +0300 Subject: [PATCH] better diagnostics --- .../debugger/engine/evaluation/EvaluateExceptionUtil.java | 3 ++- .../src/messages/ActionsBundle.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java/debugger/openapi/src/com/intellij/debugger/engine/evaluation/EvaluateExceptionUtil.java b/java/debugger/openapi/src/com/intellij/debugger/engine/evaluation/EvaluateExceptionUtil.java index dff6dc30575b..4d5536c37c4e 100644 --- a/java/debugger/openapi/src/com/intellij/debugger/engine/evaluation/EvaluateExceptionUtil.java +++ b/java/debugger/openapi/src/com/intellij/debugger/engine/evaluation/EvaluateExceptionUtil.java @@ -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"); diff --git a/platform/platform-resources-en/src/messages/ActionsBundle.properties b/platform/platform-resources-en/src/messages/ActionsBundle.properties index fc94ef647fb4..75eacac1c5c8 100644 --- a/platform/platform-resources-en/src/messages/ActionsBundle.properties +++ b/platform/platform-resources-en/src/messages/ActionsBundle.properties @@ -550,7 +550,7 @@ action.CompileDirty.text=Make _Project action.CompileDirty.description=Compile all modified and dependent files in the project action.MakeModule.text=Make _Module action.MakeModule.description=Compile all modified and dependent files in the module -action.Compile.text=_Compile +action.Compile.text=Compil_e action.Compile.description=Compile the selected file or package action.RunAPT.text=Process {0} _Annotations action.RunAPT.description=Run Annotation Processors on the selected scope