mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 22:05:44 +02:00
Applied modified version of patch in 224976.
This commit is contained in:
parent
44008336e4
commit
e2a73ed222
1 changed files with 7 additions and 7 deletions
|
@ -705,18 +705,18 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IBinaryParser parser = CCorePlugin.getDefault().getDefaultBinaryParser();
|
IBinaryParser parser = CCorePlugin.getDefault().getDefaultBinaryParser();
|
||||||
|
Exception exception;
|
||||||
try {
|
try {
|
||||||
return (IBinaryObject)parser.getBinary(exePath);
|
return (IBinaryObject)parser.getBinary(exePath);
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e) {
|
||||||
|
exception = e;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
exception = e;
|
||||||
}
|
}
|
||||||
Throwable exception = new FileNotFoundException(LaunchMessages.getFormattedString(
|
Status status = new Status(IStatus.ERROR,getPluginID(),
|
||||||
"AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable", exePath.toOSString())); //$NON-NLS-1$
|
ICDTLaunchConfigurationConstants.ERR_PROGRAM_NOT_BINARY,
|
||||||
int code = ICDTLaunchConfigurationConstants.ERR_PROGRAM_NOT_BINARY;
|
LaunchMessages.getString("AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable") + " " + exePath.toOSString(), //$NON-NLS-1$
|
||||||
MultiStatus status = new MultiStatus(getPluginID(), code, LaunchMessages
|
exception);
|
||||||
.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));
|
|
||||||
throw new CoreException(status);
|
throw new CoreException(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue