add warning output of error from AccountManager

This commit is contained in:
Stephen Birarda 2018-06-26 15:15:25 -07:00
parent e90ea82ef5
commit 24f92502b5

View file

@ -345,6 +345,7 @@ void AccountManager::sendRequest(const QString& path,
if (!invoked) {
QString error = "Could not invoke " + callbackParams.jsonCallbackMethod + " with QNetworkReply* "
+ "on errorCallbackReceiver.";
qCWarning(networking) << error;
Q_ASSERT_X(invoked, "AccountManager::passErrorToCallback", qPrintable(error));
}
} else {
@ -370,6 +371,7 @@ void AccountManager::sendRequest(const QString& path,
if (!invoked) {
QString error = "Could not invoke " + callbackParams.errorCallbackMethod + " with QNetworkReply* "
+ "on errorCallbackReceiver.";
qCWarning(networking) << error;
Q_ASSERT_X(invoked, "AccountManager::passErrorToCallback", qPrintable(error));
}