Skip to content

Commit

Permalink
add release notes for filesystem fixes
Browse files Browse the repository at this point in the history
Update doc/manual/rl-next/filesystem-errors.md

Co-authored-by: John Ericson <[email protected]>
  • Loading branch information
Mic92 and Ericson2314 committed Sep 11, 2024
1 parent 70c52d7 commit 04ce0e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/manual/rl-next/filesystem-errors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
synopsis: wrap filesystem exceptions more correctly
issues: []
prs: [11378]
---


With the switch to `std::filesystem` in different places, Nix started to throw `std::filesystem::filesystem_error` in many places instead of its own exceptions.

This lead to no longer generating error traces, for example when listing a non-existing directory, and can also lead to crashes inside the Nix REPL.

This version catches these types of exception correctly and wrap them into Nix's own exeception type.

Author: [**@Mic92**](https://github.com/Mic92)

0 comments on commit 04ce0e6

Please sign in to comment.