Skip to contentSkip to conversation

Change in openvpn[master]: Repeat the unknown command in errors from management interface

Openvpn-devel In review plaisthos (Code Review) 2 participants 6 messages May 6, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1715003428000.Ie2b62bc95371daf7e1eb58e0323835f169399910@...2715...

#1 lore raw

Attention is currently required from: flichtenheld.

Hello flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/584?usp=email

to review the following change.

Change subject: Repeat the unknown command in errors from management interface
......................................................................

Repeat the unknown command in errors from management interface

This help pinpointing errors in logs from my app

Change-Id Ie2b62bc95371daf7e1eb58e0323835f169399910

---
M src/openvpn/manage.c

1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/84/584/1

src/openvpn/manage.c +1 -1
index 43c5507..415ee7a 100644
@@ -1663,7 +1663,7 @@
 #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:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/584?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2b62bc95371daf7e1eb58e0323835f169399910
Gerrit-Change-Number: 584
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/584?usp=email )

Change subject: Repeat the unknown command in errors from management interface
......................................................................

Patch Set 1: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/584?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2b62bc95371daf7e1eb58e0323835f169399910
Gerrit-Change-Number: 584
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Mon, 06 May 2024 13:53:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw

PATCH 1/1 Repeat the unknown command in errors from management interface

In reply to a message not in the archive

From: Arne Schwabe <[email protected]...>

This help pinpointing errors in logs from my app

Change-Id Ie2b62bc95371daf7e1eb58e0323835f169399910

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/584
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>

src/openvpn/manage.c +1 -1
index 43c5507..415ee7a 100644
@@ -1663,7 +1663,7 @@
 #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:
#4 lore raw

[Openvpn-devel] [PATCH applied] Re: Repeat the unknown command in errors from management interface

Not tested, but trivial enough, and the actual format of the ERROR:
message is not guaranteed so GUIs shouldn't be surprised if it changes.

Your patch has been applied to the master branch.

commit b90a6e56250ccb18b4913bb115e5dcf4905dbfb1

Author: Arne Schwabe
Date:   Mon May 6 16:23:03 2024 +0200
     Repeat the unknown command in errors from management interface

     Signed-off-by: Arne Schwabe <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg28621.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#5 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#2) to the change originally created by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/584?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld

Change subject: Repeat the unknown command in errors from management interface
......................................................................

Repeat the unknown command in errors from management interface

This help pinpointing errors in logs from my app

Change-Id Ie2b62bc95371daf7e1eb58e0323835f169399910

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28621.html

---
M src/openvpn/manage.c

1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/84/584/2

src/openvpn/manage.c +1 -1
index 89591ea..24f3121 100644
@@ -1663,7 +1663,7 @@
 #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:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/584?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2b62bc95371daf7e1eb58e0323835f169399910
Gerrit-Change-Number: 584
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#6 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/584?usp=email )

Change subject: Repeat the unknown command in errors from management interface
......................................................................

Repeat the unknown command in errors from management interface

This help pinpointing errors in logs from my app

Change-Id Ie2b62bc95371daf7e1eb58e0323835f169399910

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg28621.html

---
M src/openvpn/manage.c

1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/manage.c +1 -1
index 89591ea..24f3121 100644
@@ -1663,7 +1663,7 @@
 #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:

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/584?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2b62bc95371daf7e1eb58e0323835f169399910
Gerrit-Change-Number: 584
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged