Commit 02e642a
committed
Fix assertValidCwd to only map NotFound errors to TerminalCwdError
Previously, all fileSystem.stat failures were unconditionally mapped to
TerminalCwdError with reason 'notFound', including permission-denied and
other IO errors. This made non-ENOENT failures impossible to diagnose.
Now only PlatformError with reason._tag 'NotFound' produces the
TerminalCwdError; all other stat errors are re-raised as defects,
matching the original pre-refactor behavior that checked for ENOENT.1 parent 1b3aa17 commit 02e642a
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
987 | 990 | | |
988 | 991 | | |
989 | 992 | | |
| |||
0 commit comments