mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
a bit of error polish, #47475
This commit is contained in:
@@ -1855,7 +1855,7 @@ export class FileSystemError extends Error {
|
||||
|
||||
constructor(message?: string, code?: string, hide?: Function) {
|
||||
super(message);
|
||||
this.name = code ? `FileError/${code}` : `FileError`;
|
||||
this.name = code ? `${code} (FileSystemError)` : `FileSystemError`;
|
||||
|
||||
if (typeof Error.captureStackTrace === 'function' && typeof hide === 'function') {
|
||||
// nice stack traces
|
||||
|
||||
Reference in New Issue
Block a user