cli: add missing newline to pager error messages

Also added colon for consistency.
This commit is contained in:
Yuya Nishihara 2022-12-01 23:44:28 +09:00
parent 79267b5492
commit 74084d026c

View file

@ -274,7 +274,7 @@ impl Ui {
// It's possible (though unlikely) that this write fails, but // It's possible (though unlikely) that this write fails, but
// this function gets called so late that there's not much we // this function gets called so late that there's not much we
// can do about it. // can do about it.
self.write_error(&format!("Failed to wait on pager {}", e)) self.write_error(&format!("Failed to wait on pager: {}\n", e))
.ok(); .ok();
} }
} }
@ -352,7 +352,7 @@ impl UiOutput {
} }
Err(e) => { Err(e) => {
io::stderr() io::stderr()
.write_fmt(format_args!("Failed to spawn pager: {}", e)) .write_fmt(format_args!("Failed to spawn pager: {}\n", e))
.ok(); .ok();
UiOutput::new_terminal() UiOutput::new_terminal()
} }