Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
include quit_reason in exit message
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 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit efbbdbf

Please sign in to comment.