[F] Fix DFI response compat

This commit is contained in:
Azalea
2025-03-20 09:50:23 -04:00
parent 4f3a6cba45
commit e7085f7602
5 changed files with 26 additions and 16 deletions

View File

@@ -35,7 +35,8 @@ abstract class DataBroker(
inline fun <reified T> String.get(key: String, data: JDict): T = getNullable(key, data) ?: run {
log("$this")
throw Exception("Failed to get $this")
if (this == "GetUserDataApi") 404 - "Failed to get $this (User not found?)"
else 417 - "Failed to get $this"
}
fun prePull(): Pair<Map<String, Long>, MutableMap<String, Long>> {