Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorJohn Cortell2008-03-31 19:50:48 +0000
committerJohn Cortell2008-03-31 19:50:48 +0000
commite2a73ed2228276ebfb13cfd6a4a1b8fd4c955ec5 (patch)
tree78c5df90cc938d0278e7480f1a378e6cb465eef0 /launch
parent44008336e461fc8da0ac52a1892fe5cd430f114f (diff)
downloadorg.eclipse.cdt-e2a73ed2228276ebfb13cfd6a4a1b8fd4c955ec5.tar.gz
org.eclipse.cdt-e2a73ed2228276ebfb13cfd6a4a1b8fd4c955ec5.tar.xz
org.eclipse.cdt-e2a73ed2228276ebfb13cfd6a4a1b8fd4c955ec5.zip
Applied modified version of patch in 224976.
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
index 5c339d9ab1c..a4332ccf126 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
@@ -705,18 +705,18 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
}
}
IBinaryParser parser = CCorePlugin.getDefault().getDefaultBinaryParser();
+ Exception exception;
try {
return (IBinaryObject)parser.getBinary(exePath);
} catch (ClassCastException e) {
+ exception = e;
} catch (IOException e) {
+ exception = e;
}
- Throwable exception = new FileNotFoundException(LaunchMessages.getFormattedString(
- "AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable", exePath.toOSString())); //$NON-NLS-1$
- int code = ICDTLaunchConfigurationConstants.ERR_PROGRAM_NOT_BINARY;
- MultiStatus status = new MultiStatus(getPluginID(), code, LaunchMessages
- .getString("AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable"), exception); //$NON-NLS-1$
- status.add(new Status(IStatus.ERROR, getPluginID(), code, exception == null ? "" : exception.getLocalizedMessage(), //$NON-NLS-1$
- exception));
+ Status status = new Status(IStatus.ERROR,getPluginID(),
+ ICDTLaunchConfigurationConstants.ERR_PROGRAM_NOT_BINARY,
+ LaunchMessages.getString("AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable") + " " + exePath.toOSString(), //$NON-NLS-1$
+ exception);
throw new CoreException(status);
}

Back to the top