Print YAML errors using Display
Much nicer error message than with Debug.
This commit is contained in:
parent
98c01457df
commit
7707dcdc5c
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue