]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/debug.qh
Automatically get the command name in the "Incorrect parameters ..." messages
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / debug.qh
index c09741a018b08620ba855e75d0020fa8ba4acd68..49b6a5787a2ddd0e1301448b78b2062523bd10bf 100644 (file)
@@ -353,9 +353,7 @@ GENERIC_COMMAND(find, "Search through entities for matching classname", false)
                }
 
                default:
-               {
-                       LOG_INFO("Incorrect parameters for ^2find^7");
-        }
+                       LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 " GetProgramCommandPrefix() " find classname");
@@ -378,7 +376,7 @@ GENERIC_COMMAND(findat, "Search through entities for matching origin", false)
                }
 
                default:
-                       LOG_INFO("Incorrect parameters for ^2findat^7");
+                       LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 " GetProgramCommandPrefix() " findat \"x y z\"");