mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 17:25:33 -05:00
Refactors Logger.error to take the Error object
This commit is contained in:
@@ -22,7 +22,7 @@ export class GitContentProvider implements TextDocumentContentProvider {
|
||||
return text;
|
||||
}
|
||||
catch (ex) {
|
||||
Logger.error('[GitLens.GitContentProvider]', 'getVersionedFileText', ex);
|
||||
Logger.error(ex, 'GitContentProvider', 'getVersionedFileText');
|
||||
await window.showErrorMessage(`Unable to show Git revision ${data.sha.substring(0, 8)} of '${path.relative(data.repoPath, fileName)}'`);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user