]> www.infradead.org Git - users/hch/nvme-cli.git/commit
Use different error code when command not found
authorKeith Busch <keith.busch@intel.com>
Mon, 1 Aug 2016 21:25:38 +0000 (15:25 -0600)
committerKeith Busch <keith.busch@intel.com>
Mon, 1 Aug 2016 21:25:38 +0000 (15:25 -0600)
commitf0af752942fb3613f643164663bb7ce60148d1b0
treeb18470679c713ec002c3f9f36d5cb8ac6336cfbe
parent4d5fc347badf9b0d4fa9d00131c12e683334b5fd
Use different error code when command not found

A failed system call returns -1 with errno set, so lets differentiate
a failed system call from not finding a command at all. This suppresses
large help messages on any generic system call failure.

Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme.c
plugin.c