diff --git a/core/merginapi.cpp b/core/merginapi.cpp index e751c9922..b3f8caf6b 100644 --- a/core/merginapi.cpp +++ b/core/merginapi.cpp @@ -112,6 +112,17 @@ MerginApi::MerginApi( LocalProjectsManager &localProjects, QObject *parent ) } } ); +#ifndef QT_NO_SSL + QObject::connect( mManager, &QNetworkAccessManager::sslErrors, this, []( const QNetworkReply * reply, const QList &errors ) + { + CoreUtils::log( QStringLiteral( "SSL error" ), QStringLiteral( "URL attempting to access: " ) + reply->url().toString() ); + for ( const auto &error : errors ) + { + CoreUtils::log( QStringLiteral( "SSL error" ), QStringLiteral( "Error Description:" ) + error.errorString() ); + } + } ); +#endif + // // check if the cache is up to date: // - server url and type