diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-03-10 04:15:25 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-03-10 04:15:25 +0100 |
commit | 380dd53dee4b72afbe7d58c2b757b5a83ac52806 (patch) | |
tree | a75b6b62ae1fd3c6385795d3780dfccb26bf08a6 | |
parent | a78c959cb55259054ca37ef6a70aef2f6f396591 (diff) | |
download | ratpoison-380dd53dee4b72afbe7d58c2b757b5a83ac52806.zip |
Print a warning message to stdout if we hit an unknown command
Should help finding typos in config files. (If use startxr, you should
probably redirect stdout and stderr to ~/.xsession-errors in your
~/.xinitrc.)
-rw-r--r-- | src/actions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c index e476804..a044f7a 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2830,6 +2830,7 @@ command (int interactive, char *data) } } + PRINT_WARNING (("command \"%s\" unknown, ignored\n", cmd)); result = cmdret_new (RET_FAILURE, MESSAGE_UNKNOWN_COMMAND, cmd); done: |