Skip to content

Commit

Permalink
fixes #38244
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Nov 13, 2017
1 parent fa592ef commit 4e172cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion extensions/git/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ export function activate(context: ExtensionContext): any {
context.subscriptions.push(new Disposable(() => Disposable.from(...disposables).dispose()));

init(context, disposables)
.catch(err => console.error(err));
.catch(err => {
if (/Git installation not found/.test(err.message || '')) {
console.warn(localize('notfound', "Git not found. You can configure its location with the `git.path` configuration setting."));
} else {
console.error(err);
}
});
}

async function checkGitVersion(info: IGit): Promise<void> {
Expand Down

0 comments on commit 4e172cd

Please sign in to comment.