Commit efbbdbf9 authored by Daniel Lenski's avatar Daniel Lenski

include quit_reason in exit message

Signed-off-by: default avatarDaniel Lenski <dlenski@gmail.com>
parent 64e97762
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment