Skip to content

Commit c4d2b17

Browse files
committed
fix(Errors): fixes some instances when errors are missing a final newline
1 parent f5f6264 commit c4d2b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ impl ClapError {
572572
/// Prints the error to `stderr` and exits with a status of `1`
573573
pub fn exit(&self) -> ! {
574574
if self.use_stderr() {
575-
werr!("{}", self.error);
575+
wlnerr!("{}", self.error);
576576
process::exit(1);
577577
}
578578
let out = io::stdout();
@@ -595,7 +595,7 @@ impl Error for ClapError {
595595

596596
impl std_fmt::Display for ClapError {
597597
fn fmt(&self, f: &mut std_fmt::Formatter) -> std_fmt::Result {
598-
write!(f, "{}", self.error)
598+
writeln!(f, "{}", self.error)
599599
}
600600
}
601601

0 commit comments

Comments
 (0)