-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make ioToFsError
OS specific
#789
Comments
Closed in IntersectMBO/ouroboros-network#557. |
Uh, no, sorry, this isn't closed yet. We relaxed the tests so that we allow different errors in Windows and Posix; ideally though we'd translate both the same set of |
Apparently, on darwin (macOS), we also get differing
|
In IntersectMBO/ouroboros-network#557 I had introduced an
while in unix there is a stricter equality check. Also the So, maybe this can close given the alternative solution? |
No, because the custom
|
I missed this comment above, but the point remains. I think modifying the error that the os throws can be confusing to the user. The errors in MockFs are based on the errors that unix throws, so relaxing the equality checker for windows seems like a good solution to me. Are there (or will be) any places where we pattern match against the error thrown (other than the tests) so that we need a unified api? |
We don't pattern match against the thrown errors, no. That's why this isn't a high-priority issue. We're not really modifying the thrown error, we're assigning the correct By doing a custom pattern match for Windows, the goal is to at least get an |
Closing this as this issue is now tracked in input-output-hk/fs-sim#45 |
Since windows and unix sometimes throw different kind of Exceptions, on IntersectMBO/ouroboros-network#285 we made the equality check too lenient (always true). This can be improved. @edsko commented IntersectMBO/ouroboros-network#530 (comment):
The text was updated successfully, but these errors were encountered: