From: Arne Schwabe Date: Mon, 6 May 2024 14:23:03 +0000 (+0200) Subject: Repeat the unknown command in errors from management interface X-Git-Tag: v2.7_alpha1~261 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b90a6e56250ccb18b4913bb115e5dcf4905dbfb1;p=thirdparty%2Fopenvpn.git Repeat the unknown command in errors from management interface This help pinpointing errors in logs from my app Change-Id: Ie2b62bc95371daf7e1eb58e0323835f169399910 Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20240506142303.13198-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28621.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c index 89591eae..24f31216 100644 --- a/src/openvpn/manage.c +++ b/src/openvpn/manage.c @@ -1663,7 +1663,7 @@ man_dispatch_command(struct management *man, struct status_output *so, const cha #endif else { - msg(M_CLIENT, "ERROR: unknown command, enter 'help' for more options"); + msg(M_CLIENT, "ERROR: unknown command [%s], enter 'help' for more options", p[0]); } done: