Skip to content

Commit

Permalink
ui: print :builtin pager suggestion as a hint
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Aug 3, 2024
1 parent b503ecb commit cf053b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,11 @@ impl Ui {
// The pager executable couldn't be found or couldn't be run
writeln!(
self.warning_default(),
"Failed to spawn pager '{name}': {e}. Consider using the `:builtin` pager.",
"Failed to spawn pager '{name}': {e}",
name = self.pager_cmd.split_name(),
)
.ok();
writeln!(self.hint_default(), "Consider using the `:builtin` pager.").ok();
})
.ok()
};
Expand Down

0 comments on commit cf053b7

Please sign in to comment.