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");
@@ -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