Skip to content

Commit

Permalink
output newline at the end of error reports
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd authored and nagisa committed Nov 6, 2019
1 parent dd76a06 commit 93a9e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ fn red(s: &str) {

pub fn report_error(e: &super::Error) {
red("error:");
eprint!(" {}", e);
eprintln!(" {}", e);
for e in e.iter().skip(1) {
red(" caused by:");
eprint!(" {}", e);
eprintln!(" {}", e);
}
}

Expand Down

0 comments on commit 93a9e94

Please sign in to comment.