Skip to content

Commit

Permalink
include quit_reason in exit message
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
  • Loading branch information
dlenski committed Dec 10, 2020
1 parent 64e9776 commit efbbdbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.c
Expand Up @@ -2094,6 +2094,9 @@ int main(int argc, char **argv)
ret = 1;
break;
default:
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;
Expand Down

0 comments on commit efbbdbf

Please sign in to comment.