Skip to content

Commit 02e9f9b

Browse files
committed
Fixed path and dest not being assigned to Exception properly
1 parent ea2aa1e commit 02e9f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export class Exception extends Error implements NodeJS.ErrnoException, Exception
487487

488488
super(message);
489489
this.code = code;
490-
Object.assign(this, omit(ctx, 'message', 'path', 'dest'));
490+
Object.assign(this, omit(ctx, 'message'));
491491

492492
Error.captureStackTrace?.(this, this.constructor);
493493
}

0 commit comments

Comments
 (0)