CLI: better error message for bad input path

Previously it just said `error: NotDir` but now it says
`error: unable to open '<path>': NotDir`.
f4c6e5d94eAndrew Kelley committed on 10/5/2022, 7:41:17 AMparentff534d2
1 file changedLine totals unavailable