From 9713b9483565b746927b50b750498c509947885e Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Thu, 25 Feb 2021 19:51:27 +0100 Subject: 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. --- pkgs/profpatsch/nman/nman.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/profpatsch/nman') 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(""), 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), -- cgit 1.4.1