mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
Slight organizational improvement to last commit (consolidate two checks into one).
This commit is contained in:
parent
b9f5b7a7d4
commit
c2c4bc613c
1 changed files with 4 additions and 9 deletions
|
@ -559,16 +559,11 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
}
|
}
|
||||||
|
|
||||||
exePath = location.append(name);
|
exePath = location.append(name);
|
||||||
|
}
|
||||||
if (!exePath.toFile().exists()) {
|
if (!exePath.toFile().exists()) {
|
||||||
setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$
|
setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (!exePath.toFile().exists()) {
|
|
||||||
setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
if (!isBinary(project, exePath)) {
|
if (!isBinary(project, exePath)) {
|
||||||
setErrorMessage(LaunchMessages.getString("CMainTab.Program_is_not_a_recongnized_executable")); //$NON-NLS-1$
|
setErrorMessage(LaunchMessages.getString("CMainTab.Program_is_not_a_recongnized_executable")); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue