From c4d2b1711994479ad64ee52b6b49d2ceccbf2118 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Fri, 20 Nov 2015 08:23:39 -0500 Subject: [PATCH] fix(Errors): fixes some instances when errors are missing a final newline --- src/errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 0065b693ebd..2f18f9afe65 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -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(); @@ -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) } }