1
0
Fork 0
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:
Andrew Gvozdev 2009-08-31 22:24:02 +00:00
parent c0d0d15fb8
commit cf1ffeaadc
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {