From 67becd9496570afdcec4ff7ca6d35ab74d73e633 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Mon, 2 Mar 2020 20:22:11 +0100 Subject: [PATCH] Printing eror message on ssl init failed --- license/server/WebAPI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/license/server/WebAPI.cpp b/license/server/WebAPI.cpp index 7bf8d85..dd84d68 100644 --- a/license/server/WebAPI.cpp +++ b/license/server/WebAPI.cpp @@ -197,14 +197,15 @@ void WebStatistics::initialize_client(const std::shared_ptr(); options->type = pipes::SSL::SERVER; options->context_method = TLS_method(); options->free_unused_keypairs = false; /* we dont want our keys get removed */ options->default_keypair({this->ssl->privateKey, this->ssl->certificate}); - if(!client->pipe_ssl->initialize(options)) { - logError(LOG_LICENSE_WEB, "[{}][SSL] Failed to setup ssl! Disconnecting client", client->client_prefix()); + if(!client->pipe_ssl->initialize(options, error)) { + logError(LOG_LICENSE_WEB, "[{}][SSL] Failed to setup ssl ({})! Disconnecting client", client->client_prefix(), error); this->close_connection(client); } }