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
o9000 o9000
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/config.c
→
src/config.c
@@ -110,6 +110,8 @@ else if (strcmp (event, "next_task") == 0)
*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); }