Some tweaks for setting migration

This commit is contained in:
Dirk Baeumer
2017-01-26 14:19:43 +01:00
parent aeb466bdee
commit ecd9571695
2 changed files with 2 additions and 1 deletions

View File

@@ -237,7 +237,7 @@ export default class PHPValidationProvider {
private showError(error: any, executable: string): void {
let message: string = null;
if (error.code === 'ENOENT') {
if (executable) {
if (this.executable) {
message = localize('wrongExecutable', 'Cannot validate since {0} is not a valid php executable. Click on the Path status bar item to configure the executable.', executable);
} else {
message = localize('noExecutable', 'Cannot validate since no PHP executable is set. Click on the Path status bar item to configure the executable.');