policycoreutils: semanage: cleanup error on invalid operation

Before you would get:
$ semanage fcontext toys
/usr/sbin/semanage Invalid command fcontext toys

Now you get:
$ semanage fcontext toys
/usr/sbin/semanage: Invalid command: semanage fcontext toys

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Eric Paris 2011-07-19 11:27:22 -04:00
parent 877447a9e7
commit 2c3e6f6115

View File

@ -427,7 +427,7 @@ Object-specific Options (see above):
return
raise ValueError(_("Invalid command") % " ".join(argv))
raise ValueError(_("Invalid command: semanage %s") % " ".join(argv))
#
#