MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / emitFail

Method emitFail

launcher/modplatform/EnsureMetadataTask.cpp:191–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void EnsureMetadataTask::emitFail(Mod* m, QString key, RemoveFromList remove)
192{
193 if (!m) {
194 qCritical() << "Tried to mark a null mod as failed.";
195 if (!key.isEmpty())
196 m_mods.remove(key);
197
198 return;
199 }
200
201 qDebug() << QString("Failed to generate metadata for %1").arg(m->name());
202 emit metadataFailed(m);
203
204 if (remove == RemoveFromList::Yes) {
205 if (key.isEmpty())
206 key = getExistingHash(m);
207 m_mods.remove(key);
208 }
209}
210
211// Modrinth
212

Callers

nothing calls this directly

Calls 4

QStringClass · 0.85
isEmptyMethod · 0.80
removeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected