Code Generator for Eclipse Code
Brought to you by:
hotzst
changed | /ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java |
--- a/ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java +++ b/ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java @@ -31,14 +31,14 @@ * @param e Throwable to be logged */ public static void log(Throwable e){ - JavaPlugin.log(new Status(IStatus.ERROR, pluginId , IJavaStatusConstants.INTERNAL_ERROR, "", e)); //$NON-NLS-1$ + JavaPlugin.log(new Status(IStatus.ERROR, pluginId , IJavaStatusConstants.INTERNAL_ERROR, e.getMessage(), e)); //$NON-NLS-1$ } /** * Add an error to the warning Log. * @param e Throwable to be logged */ public static void logWarning(Throwable e){ - JavaPlugin.log(new Status(IStatus.WARNING, pluginId , IJavaStatusConstants.INTERNAL_ERROR, "", e)); //$NON-NLS-1$ + JavaPlugin.log(new Status(IStatus.WARNING, pluginId , IJavaStatusConstants.INTERNAL_ERROR, e.getMessage(), e)); //$NON-NLS-1$ } /** * Add an error to the error Log.