Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #463 from abarisain/fix_formatexe
Browse files Browse the repository at this point in the history
Fix the executable name so ".exe" doesn't end up in the install warning
  • Loading branch information
lukehoban authored Sep 15, 2016
2 parents 5560657 + c383a74 commit ed05c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Formatter {
cp.execFile(formatCommandBinPath, [...formatFlags, filename], {}, (err, stdout, stderr) => {
try {
if (err && (<any>err).code === 'ENOENT') {
promptForMissingTool(formatCommandBinPath);
promptForMissingTool(this.formatCommand);
return resolve(null);
}
if (err) return reject('Cannot format due to syntax errors.');
Expand Down

0 comments on commit ed05c63

Please sign in to comment.