ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: include pager command args in warning message

"No such file or directory" is useless without a command name.
This commit is contained in:
Yuya Nishihara 2023-01-05 10:57:35 +09:00
parent cfac7468d8
commit d8d015613c

View file

@ -163,8 +163,11 @@ impl Ui {
self.output = new_output; self.output = new_output;
} }
Err(e) => { Err(e) => {
self.write_warn(&format!("Failed to spawn pager: {e}\n")) self.write_warn(&format!(
.ok(); "Failed to spawn pager '{cmd}': {e}\n",
cmd = self.pager_cmd,
))
.ok();
} }
} }
} }