diff --git a/src/output/details.rs b/src/output/details.rs index 9b1a14b..c439507 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -327,12 +327,14 @@ impl<'a> Render<'a> { } fn render_error(&self, error: &IOError, tree: TreeParams, path: Option) -> Row { + use output::file_name::Colours; + let error_message = match path { Some(path) => format!("<{}: {}>", path.display(), error), None => format!("<{}>", error), }; - let name = TextCell::paint(self.colours.broken_arrow, error_message); + let name = TextCell::paint(self.colours.broken_arrow(), error_message); Row { cells: None, name, tree } }