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:
o9000 2015-04-17 20:32:03 +00:00 committed by mrovi9000@gmail.com
parent b78c854700
commit 64c1fc03f9

View file

@ -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);
}