Fix ErrorStack display

This commit is contained in:
Steven Fackler 2016-12-09 21:32:28 -08:00
parent 33ca7b6320
commit 152d788998
1 changed files with 2 additions and 2 deletions

View File

@ -32,11 +32,11 @@ impl fmt::Display for ErrorStack {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
let mut first = true;
for err in &self.0 {
if first {
if !first {
try!(fmt.write_str(", "));
first = false;
}
try!(write!(fmt, "{}", err));
first = false;
}
Ok(())
}