address review

This commit is contained in:
Edo 2024-01-20 13:47:53 +01:00 committed by GitHub
parent b6fb3c64f9
commit cbdc616a9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,14 +41,14 @@ namespace Components
if (!parseResult || !doc.IsObject())
{
// Nothing to do in this situation. We won't know if we need to update or not
Logger::Print("GitHub sent an invalid reply\n");
Logger::Print("GitHub sent an invalid reply (malformed JSON)\n");
return;
}
if (!doc.HasMember("tag_name") || !doc["tag_name"].IsString())
{
// Nothing to do in this situation. We won't know if we need to update or not
Logger::Print("GitHub sent an invalid reply\n");
Logger::Print("GitHub sent an invalid reply (missing 'tag_name' JSON member)\n");
return;
}