From 0af721bcb274e26fa866ac40314633ffb017d7bc Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 7 Jun 2025 23:08:32 +0200 Subject: fix: upgrade soft user error to a full error in tests --- src/main/kotlin/util/ErrorUtil.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/util/ErrorUtil.kt') 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")) } } -- cgit