fix: upgrade soft user error to a full error in tests

This commit is contained in:
Linnea Gräf
2025-06-07 23:08:32 +02:00
parent 1f24736e0c
commit 0af721bcb2

View File

@@ -76,6 +76,8 @@ object ErrorUtil {
}
fun softUserError(string: String) {
MC.sendChat(tr("frimanet.usererror", "Firmament encountered a user caused error: $string"))
if (TestUtil.isInTest)
error(string)
MC.sendChat(tr("firmament.usererror", "Firmament encountered a user caused error: $string"))
}
}