Fix error printing message during login failure and make it a warning.

This commit is contained in:
Julian Groß 2024-07-25 03:18:34 +02:00
parent d6150c3684
commit b9239f451f

View file

@ -4,7 +4,7 @@
// //
// Created by Stephen Birarda on 2/18/2014. // Created by Stephen Birarda on 2/18/2014.
// Copyright 2014 High Fidelity, Inc. // Copyright 2014 High Fidelity, Inc.
// Copyright 2023 Overte e.V. // Copyright 2023-2024 Overte e.V.
// //
// Distributed under the Apache License, Version 2.0. // Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@ -714,7 +714,7 @@ void AccountManager::setAccessTokens(const QString& response) {
} }
} else { } else {
// TODO: error handling // TODO: error handling
qCDebug(networking) << "Error in response for password grant -" << rootObject["error_description"].toString(); qCWarning(networking) << "Error in response for password grant -" << rootObject["error"].toString();
emit loginFailed(); emit loginFailed();
} }
} }
@ -750,7 +750,7 @@ void AccountManager::requestAccessTokenFinished() {
} }
} else { } else {
// TODO: error handling // TODO: error handling
qCDebug(networking) << "Error in response for password grant -" << rootObject["error_description"].toString(); qCWarning(networking) << "Error in response for password grant -" << rootObject["error"].toString();
emit loginFailed(); emit loginFailed();
} }
} }