aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/ErrorUtil.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-06-07 23:08:32 +0200
committerLinnea Gräf <nea@nea.moe>2025-06-07 23:08:32 +0200
commit0af721bcb274e26fa866ac40314633ffb017d7bc (patch)
tree2e006aa0043e048fac9c80ea8340b1484f57c767 /src/main/kotlin/util/ErrorUtil.kt
parent1f24736e0c5f7204b6977eb9631cac7571d53aeb (diff)
downloadFirmament-0af721bcb274e26fa866ac40314633ffb017d7bc.tar.gz
Firmament-0af721bcb274e26fa866ac40314633ffb017d7bc.tar.bz2
Firmament-0af721bcb274e26fa866ac40314633ffb017d7bc.zip
fix: upgrade soft user error to a full error in tests
Diffstat (limited to 'src/main/kotlin/util/ErrorUtil.kt')
-rw-r--r--src/main/kotlin/util/ErrorUtil.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/util/ErrorUtil.kt b/src/main/kotlin/util/ErrorUtil.kt
index e82d369..2f0acd6 100644
--- a/src/main/kotlin/util/ErrorUtil.kt
+++ b/src/main/kotlin/util/ErrorUtil.kt
@@ -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"))
}
}