diff options
author | Linnea Gräf <nea@nea.moe> | 2025-06-07 23:08:32 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-06-07 23:08:32 +0200 |
commit | 0af721bcb274e26fa866ac40314633ffb017d7bc (patch) | |
tree | 2e006aa0043e048fac9c80ea8340b1484f57c767 /src/main/kotlin/util/ErrorUtil.kt | |
parent | 1f24736e0c5f7204b6977eb9631cac7571d53aeb (diff) | |
download | Firmament-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.kt | 4 |
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")) } } |