From 7707dcdc5c138a0f4007caa72bf818342d0e5a23 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 10 Feb 2017 09:40:26 -0800 Subject: Print YAML errors using Display Much nicer error message than with Debug. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.rs b/src/config.rs index eb4a9e61..6daa0eb1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -997,7 +997,7 @@ impl ::std::fmt::Display for Error { write!(f, "could not read $HOME environment variable: {}", err) }, Error::Io(ref err) => write!(f, "error reading config file: {}", err), - Error::Yaml(ref err) => write!(f, "problem with config: {:?}", err), + Error::Yaml(ref err) => write!(f, "problem with config: {}", err), } } } -- cgit