summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-09 21:56:33 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-09 21:56:33 +0200
commit4cf4110d9dc694d2c28feca38656925980b57a4d (patch)
tree35de1ce46ff412092a2386715d9709e4c4a7188c /api
parente029b7764e32062ae4fb9abd6a7f3c184fc0f546 (diff)
downloadMultiMC-4cf4110d9dc694d2c28feca38656925980b57a4d.tar
MultiMC-4cf4110d9dc694d2c28feca38656925980b57a4d.tar.gz
MultiMC-4cf4110d9dc694d2c28feca38656925980b57a4d.tar.lz
MultiMC-4cf4110d9dc694d2c28feca38656925980b57a4d.tar.xz
MultiMC-4cf4110d9dc694d2c28feca38656925980b57a4d.zip
NOISSUE log even more about 'Flame' resolving issues
Diffstat (limited to 'api')
-rw-r--r--api/logic/minecraft/flame/FileResolvingTask.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/api/logic/minecraft/flame/FileResolvingTask.cpp b/api/logic/minecraft/flame/FileResolvingTask.cpp
index 929b26d5..d55beb63 100644
--- a/api/logic/minecraft/flame/FileResolvingTask.cpp
+++ b/api/logic/minecraft/flame/FileResolvingTask.cpp
@@ -38,19 +38,23 @@ void Flame::FileResolvingTask::netJobFinished()
{
auto doc = Json::requireDocument(bytes);
auto obj = Json::requireObject(doc);
+ auto & out = m_toProcess.files[index];
// result code signifies true failure.
if(obj.contains("code"))
{
+ qCritical() << "Resolving of" << out.projectId << out.fileId << "failed because of a negative result:";
+ qCritical() << bytes;
failed = true;
continue;
}
- auto & out = m_toProcess.files[index];
out.fileName = Json::requireString(obj, "FileNameOnDisk");
out.url = Json::requireString(obj, "DownloadURL");
out.resolved = true;
}
catch(JSONValidationError & e)
{
+ auto & out = m_toProcess.files[index];
+ qCritical() << "Resolving of" << out.projectId << out.fileId << "failed because of a parsing error:";
qCritical() << e.cause();
qCritical() << "JSON:";
qCritical() << bytes;