projects
/
users
/
dwmw2
/
openconnect.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e9776
)
include quit_reason in exit message
author
Daniel Lenski <dlenski@gmail.com>
Tue, 8 Dec 2020 22:16:19 +0000
(14:16 -0800)
committer
Daniel Lenski <dlenski@gmail.com>
Thu, 10 Dec 2020 00:11:11 +0000
(16:11 -0800)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 7978af221d42b902fbb6b5a7a7a7db1356d7e10b..e662b3584453000bb1da66431776f377f93d0f4b 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-2094,7
+2094,10
@@
int main(int argc, char **argv)
ret = 1;
break;
default:
- vpn_progress(vpninfo, PRG_ERR, _("Unknown error; exiting.\n"));
+ if (vpninfo->quit_reason)
+ vpn_progress(vpninfo, PRG_ERR, "%s; exiting\n", vpninfo->quit_reason);
+ else
+ vpn_progress(vpninfo, PRG_ERR, _("Unknown error; exiting.\n"));
ret = 1;
break;
}