Print YAML errors using Display

Much nicer error message than with Debug.
This commit is contained in:
Joe Wilm 2017-02-10 09:40:26 -08:00
parent 98c01457df
commit 7707dcdc5c
1 changed files with 1 additions and 1 deletions

View File

@ -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),
}
}
}