diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-05-09 21:56:33 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-05-09 21:56:33 +0200 |
commit | 4cf4110d9dc694d2c28feca38656925980b57a4d (patch) | |
tree | 35de1ce46ff412092a2386715d9709e4c4a7188c /api | |
parent | e029b7764e32062ae4fb9abd6a7f3c184fc0f546 (diff) | |
download | MultiMC-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.cpp | 6 |
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; |