Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2014-05-12 09:09:44 -0400
committerAnton Leherbauer2014-05-12 09:09:44 -0400
commit4f105f7095667e9b349a6825cf3883444bca187f (patch)
treec95129d44c26f28c868018ee72352ef054aacf6f
parentc307d724a6c2dd314b04102f5ec368a82136539c (diff)
downloadorg.eclipse.tcf-4f105f7095667e9b349a6825cf3883444bca187f.tar.gz
org.eclipse.tcf-4f105f7095667e9b349a6825cf3883444bca187f.tar.xz
org.eclipse.tcf-4f105f7095667e9b349a6825cf3883444bca187f.zip
TCF Debugger: Bug 434475 Unfriendly error message when modifying register value fails at the target
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java
index 594d15314..de3923b72 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java
@@ -2068,7 +2068,8 @@ public class TCFModel implements ITCFModel, IElementContentProvider, IElementLab
}
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
mb.setText(title);
- mb.setMessage(getErrorMessage(error, true));
+ mb.setMessage(getErrorMessage(error, !(error instanceof IErrorReport)));
+ if (error instanceof IErrorReport) Activator.log(title, error);
mb.open();
}
});

Back to the top