diff options
author | Piotr Pawel Stefaniak <pstef@FreeBSD.org> | 2020-06-20 06:20:00 +0000 |
---|---|---|
committer | Piotr Pawel Stefaniak <pstef@FreeBSD.org> | 2020-06-20 06:20:00 +0000 |
commit | 181546cc6f3a31193f3c424e0c0d322ebe7b3840 (patch) | |
tree | 6255203987fa18cc0961212b4159e8ee16c23c0f /chpass/Makefile | |
parent | f1fc2d9573ad77a2ab54e0a2535ea1e1e8eb42b7 (diff) | |
download | pw-darwin-181546cc6f3a31193f3c424e0c0d322ebe7b3840.tar.gz pw-darwin-181546cc6f3a31193f3c424e0c0d322ebe7b3840.tar.zst pw-darwin-181546cc6f3a31193f3c424e0c0d322ebe7b3840.zip |
Make vipw error message less cryptic
Unable to find an editor, vipw would give this error:
# env EDITOR=fnord vipw
vipw: pw_edit(): No such file or directory
vigr or crontab do better:
# env EDITOR=fnord crontab -e
crontab: no crontab for root - using an empty one
crontab: fnord: No such file or directory
crontab: "fnord" exited with status 1
After this change, vipw behaves more like vigr or crontab:
# env EDITOR=fnord vipw
vipw: fnord: No such file or directory
vipw: "fnord" exited with status 1
Reviewed by: rpokala, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25369
Diffstat (limited to 'chpass/Makefile')
0 files changed, 0 insertions, 0 deletions