summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-30 13:36:17 +0100
committerMattes D <github@xoft.cz>2015-12-30 13:36:17 +0100
commit1210eb13165f547d0a1820156e12adf171b0a435 (patch)
tree2d4d08c20a554889a74c315d178c7b21d98daf78 /src/Protocol/MojangAPI.cpp
parentMerge pull request #2837 from cuberite/FixMonsterBurn (diff)
parentFixed problems in cBlockingSslClientSocket. (diff)
downloadcuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.gz
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.bz2
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.lz
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.xz
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.tar.zst
cuberite-1210eb13165f547d0a1820156e12adf171b0a435.zip
Diffstat (limited to 'src/Protocol/MojangAPI.cpp')
-rw-r--r--src/Protocol/MojangAPI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp
index dfbf9a568..0edb9f33e 100644
--- a/src/Protocol/MojangAPI.cpp
+++ b/src/Protocol/MojangAPI.cpp
@@ -748,7 +748,7 @@ void cMojangAPI::QueryNamesToUUIDs(AStringVector & a_NamesToQuery)
Json::Reader reader;
if (!reader.parse(Response, root, false) || !root.isArray())
{
- LOGWARNING("%s failed: Cannot parse received data (NameToUUID) to JSON!", __FUNCTION__);
+ LOGWARNING("%s failed: Cannot parse received data (NameToUUID) to JSON: \"%s\"", __FUNCTION__, reader.getFormattedErrorMessages().c_str());
LOGD("Response body:\n%s", CreateHexDump(HexDump, Response.data(), Response.size(), 16).c_str());
continue;
}
@@ -861,7 +861,7 @@ void cMojangAPI::QueryUUIDToProfile(const AString & a_UUID)
Json::Value root;
if (!reader.parse(Response, root, false) || !root.isObject())
{
- LOGWARNING("%s failed: Cannot parse received data (NameToUUID) to JSON!", __FUNCTION__);
+ LOGWARNING("%s failed: Cannot parse received data (NameToUUID) to JSON: \"%s\"", __FUNCTION__, reader.getFormattedErrorMessages().c_str());
LOGD("Response body:\n%s", CreateHexDump(HexDump, Response.data(), Response.size(), 16).c_str());
return;
}