a bit of error polish, #47475

This commit is contained in:
Johannes Rieken
2018-04-20 10:39:44 +02:00
parent 9f752b989e
commit bffdc6a15d
2 changed files with 3 additions and 3 deletions

View File

@@ -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