Print error message for invalid action name in get_action()
git-svn-id: http://tint2.googlecode.com/svn/trunk@761 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
b78c854700
commit
64c1fc03f9
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,8 @@ void get_action (char *event, int *action)
|
|||
*action = NEXT_TASK;
|
||||
else if (strcmp (event, "prev_task") == 0)
|
||||
*action = PREV_TASK;
|
||||
else
|
||||
fprintf(stderr, "Error: unrecognized action '%s'. Please fix your config file.\n", event);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue