Skip to content

Commit

Permalink
fixError can now handle read-only message
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 11, 2024
1 parent 53edbfe commit 2270f28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/emulation/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export function fixError<E extends ErrnoError>(e: E, paths: Record<string, strin
if (typeof e.stack == 'string') {
e.stack = fixPaths(e.stack, paths);
}
e.message = fixPaths(e.message, paths);
try {
e.message = fixPaths(e.message, paths);
} catch {}

Check warning on line 107 in src/emulation/shared.ts

View workflow job for this annotation

GitHub Actions / CI

Empty block statement
return e;
}

Expand Down

0 comments on commit 2270f28

Please sign in to comment.