diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-25 19:51:27 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2021-02-25 19:52:33 +0100 |
commit | 9713b9483565b746927b50b750498c509947885e (patch) | |
tree | 97b1ab408ac90c9c3a30dae8eb60a508cd7e3e81 /pkgs/profpatsch/nman | |
parent | 97d126bc965bbf383d9b2898534afa736d54c964 (diff) |
pkgs/profpatsch/nman: use unicode replacement characters
Should give the user more information about what exactly went wrong in the event of a store path being garbage.
Diffstat (limited to 'pkgs/profpatsch/nman')
-rw-r--r-- | pkgs/profpatsch/nman/nman.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/profpatsch/nman/nman.rs b/pkgs/profpatsch/nman/nman.rs index 4886d125..23c43780 100644 --- a/pkgs/profpatsch/nman/nman.rs +++ b/pkgs/profpatsch/nman/nman.rs @@ -65,7 +65,7 @@ impl NmanError<'_> { attr, pretty_exit_status(s)), NmanError::Build(drv_path, s) => format!("failed to build \"{}\", nix-store {}.", - drv_path.to_str().unwrap_or("<invalid utf-8>"), pretty_exit_status(s)), + drv_path.to_string_lossy(), pretty_exit_status(s)), NmanError::Man => String::from("man failed while opening while opening man page"), NmanError::NotFound(page, sec) => format!("man page {}({}) could not be found", page, sec.unwrap_or("?")), NmanError::ParseError(exec) => format!("could not parse output of {}", exec), |