mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 01:35:39 +02:00
display exception message in coreexception message
This commit is contained in:
parent
8510ce5ea0
commit
e8710267d3
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ abstract public class AbstractCLaunchDelegate implements ILaunchConfigurationDel
|
||||||
* @param code error code
|
* @param code error code
|
||||||
*/
|
*/
|
||||||
protected void abort(String message, Throwable exception, int code) throws CoreException {
|
protected void abort(String message, Throwable exception, int code) throws CoreException {
|
||||||
|
String newMessage = message;
|
||||||
|
if ( exception != null ) {
|
||||||
|
newMessage = message + " : " + exception.getLocalizedMessage();
|
||||||
|
}
|
||||||
throw new CoreException(new Status(IStatus.ERROR, getPluginID(), code, message, exception));
|
throw new CoreException(new Status(IStatus.ERROR, getPluginID(), code, message, exception));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue