Skip to content

Commit 4e172cd

Browse files
committed
1 parent fa592ef commit 4e172cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extensions/git/src/main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ export function activate(context: ExtensionContext): any {
6666
context.subscriptions.push(new Disposable(() => Disposable.from(...disposables).dispose()));
6767

6868
init(context, disposables)
69-
.catch(err => console.error(err));
69+
.catch(err => {
70+
if (/Git installation not found/.test(err.message || '')) {
71+
console.warn(localize('notfound', "Git not found. You can configure its location with the `git.path` configuration setting."));
72+
} else {
73+
console.error(err);
74+
}
75+
});
7076
}
7177

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

0 commit comments

Comments
 (0)