diff options
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; |