Commit 9004cbb
fix(manpages): warn when man executable or mandb cache is missing
Problem: when man-db's cache isn't populated (or man isn't installed),
`man -k .` exits non-zero with empty stdout. The picker silently shows
an empty list with no indication of what went wrong.
Solution: check for the man executable upfront and validate that
`opts.cmd` produces output before launching the picker. If either check
fails, warn the user with an actionable message.1 parent b2c0603 commit 9004cbb
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
42 | 53 | | |
43 | 54 | | |
44 | 55 | | |
| |||
0 commit comments