mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-25 18:02:01 -05:00
Refactors Logger.error to take the Error object
This commit is contained in:
@@ -48,7 +48,7 @@ export async function activate(context: ExtensionContext) {
|
||||
repoPath = await Git.getRepoPath(rootPath, gitPath);
|
||||
}
|
||||
catch (ex) {
|
||||
Logger.error(ex);
|
||||
Logger.error(ex, 'Extension.activate');
|
||||
if (ex.message.includes('Unable to find git')) {
|
||||
await window.showErrorMessage(`GitLens was unable to find Git. Please make sure Git is installed. Also ensure that Git is either in the PATH, or that 'gitlens.advanced.git' is pointed to its installed location.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user