cli: print "Failed to wait on pager" as warning

Since it doesn't terminate jj, it can be considered a warning.
This commit is contained in:
Yuya Nishihara 2024-03-24 15:53:30 +09:00
parent 31525705db
commit 078acc9eee

View file

@ -439,7 +439,7 @@ impl Ui {
// It's possible (though unlikely) that this write fails, but
// this function gets called so late that there's not much we
// can do about it.
writeln!(self.error_no_heading(), "Failed to wait on pager: {e}").ok();
writeln!(self.warning_default(), "Failed to wait on pager: {e}").ok();
}
}
UiOutput::BuiltinPaged { pager } => {