Skip to content

All std::filesystem related errors need to be re-thrown as nix errors #11376

Open
@Mic92

Description

Describe the bug

Since @siddhantk232 has introduced std::filesystem in many places
we no longer generate nix traces i.e. when a directory does not exit.
We need to catch all fs::filesystem_error related exception and throw a proper nix error instead,
because only nix errors are catched in eval.cc and get nix error context added.

Metadata

Assignees

No one assigned

    Labels

    bugidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.

    Type

    No type

    Projects

    • Status

      ⚖ To discuss

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions