diff options
Diffstat (limited to 'NorthstarDLL')
-rw-r--r-- | NorthstarDLL/masterserver/masterserver.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/NorthstarDLL/masterserver/masterserver.cpp b/NorthstarDLL/masterserver/masterserver.cpp index c71be961..76106169 100644 --- a/NorthstarDLL/masterserver/masterserver.cpp +++ b/NorthstarDLL/masterserver/masterserver.cpp @@ -498,7 +498,9 @@ void MasterServerManager::AuthenticateWithOwnServer(const char* uid, const char* spdlog::error("Failed reading masterserver response: got fastify error response"); spdlog::error(readBuffer); - if (authInfoJson["error"].HasMember("enum")) + if (authInfoJson["error"].HasMember("msg")) + m_sAuthFailureReason = authInfoJson["error"]["msg"].GetString(); + else if (authInfoJson["error"].HasMember("enum")) m_sAuthFailureReason = authInfoJson["error"]["enum"].GetString(); else m_sAuthFailureReason = "No error message provided"; @@ -651,7 +653,9 @@ void MasterServerManager::AuthenticateWithServer(const char* uid, const char* pl spdlog::error("Failed reading masterserver response: got fastify error response"); spdlog::error(readBuffer); - if (connectionInfoJson["error"].HasMember("enum")) + if (connectionInfoJson["error"].HasMember("msg")) + m_sAuthFailureReason = connectionInfoJson["error"]["msg"].GetString(); + else if (connectionInfoJson["error"].HasMember("enum")) m_sAuthFailureReason = connectionInfoJson["error"]["enum"].GetString(); else m_sAuthFailureReason = "No error message provided"; |