summaryrefslogtreecommitdiff
path: root/wrapper/runcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/runcom.c')
-rw-r--r--wrapper/runcom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wrapper/runcom.c b/wrapper/runcom.c
index dd843dc..0e8dad8 100644
--- a/wrapper/runcom.c
+++ b/wrapper/runcom.c
@@ -37,6 +37,9 @@ main ( int argc, char *argv[] )
if (argc > 1) {
struct plugin_command_list *list;
list=plugin_find_commands(plugins,argv[1]);
+ if (list==NULL)
+ error(EXIT_FAILURE,0,"unrecognized command `%s'",
+ argv[1]);
struct plugin_command *root;
root=plugin_depend_list(list,plugins);
plugin_free_list(list);