mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 03:35:37 +02:00
added logging of exceptions, inspired by bug 286226
This commit is contained in:
parent
c0d0d15fb8
commit
cf1ffeaadc
2 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
*/
|
*/
|
||||||
public static void errorDialog(Shell shell, String title, String message, Throwable t, boolean logError) {
|
public static void errorDialog(Shell shell, String title, String message, Throwable t, boolean logError) {
|
||||||
if (logError)
|
if (logError)
|
||||||
log(t);
|
log(message, t);
|
||||||
|
|
||||||
IStatus status;
|
IStatus status;
|
||||||
if (t instanceof CoreException) {
|
if (t instanceof CoreException) {
|
||||||
|
|
|
@ -176,7 +176,7 @@ implements IExecutableExtension, IWizardWithMemory
|
||||||
try {
|
try {
|
||||||
getContainer().run(true, true, op);
|
getContainer().run(true, true, op);
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
CUIPlugin.errorDialog(getShell(), title, message, e.getTargetException(), false);
|
CUIPlugin.errorDialog(getShell(), title, message, e.getTargetException(), true);
|
||||||
clearProject();
|
clearProject();
|
||||||
return false;
|
return false;
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue