summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-30 13:00:02 +0100
committerMattes D <github@xoft.cz>2015-12-30 13:00:02 +0100
commit0054104017b6339e10e0bbc24d0fdf94d1061260 (patch)
tree2d4d08c20a554889a74c315d178c7b21d98daf78 /src/Protocol/MojangAPI.cpp
parentMerge pull request #2837 from cuberite/FixMonsterBurn (diff)
downloadcuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.gz
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.bz2
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.lz
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.xz
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.tar.zst
cuberite-0054104017b6339e10e0bbc24d0fdf94d1061260.zip
Diffstat (limited to '')
-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;
}