Skip to content

Commit

Permalink
fix(Errors): fixes some instances when errors are missing a final new…
Browse files Browse the repository at this point in the history
…line
  • Loading branch information
kbknapp committed Nov 20, 2015
1 parent f5f6264 commit c4d2b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ impl ClapError {
/// Prints the error to `stderr` and exits with a status of `1`
pub fn exit(&self) -> ! {
if self.use_stderr() {
werr!("{}", self.error);
wlnerr!("{}", self.error);
process::exit(1);
}
let out = io::stdout();
Expand All @@ -595,7 +595,7 @@ impl Error for ClapError {

impl std_fmt::Display for ClapError {
fn fmt(&self, f: &mut std_fmt::Formatter) -> std_fmt::Result {
write!(f, "{}", self.error)
writeln!(f, "{}", self.error)
}
}

Expand Down

0 comments on commit c4d2b17

Please sign in to comment.