Skip to content

Commit f633c94

Browse files
committed
Don't propagate recipe exceptions
1 parent 309d5de commit f633c94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

rebar/src/main/kotlin/io/github/pylonmc/rebar/recipe/ConfigurableRecipeType.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.pylonmc.rebar.recipe
22

3+
import io.github.pylonmc.rebar.Rebar
34
import io.github.pylonmc.rebar.config.ConfigSection
45
import io.github.pylonmc.rebar.config.adapter.ConfigAdapter
56
import io.github.pylonmc.rebar.recipe.RebarRecipe.Companion.priority
@@ -22,10 +23,8 @@ abstract class ConfigurableRecipeType<T : RebarRecipe>(key: NamespacedKey) : Rec
2223
}
2324
addRecipe(recipe)
2425
} catch (e: Exception) {
25-
throw IllegalArgumentException(
26-
"Failed to load recipe with key '$key' from config for recipe type ${this.key}",
27-
e
28-
)
26+
Rebar.logger.severe("Failed to load recipe with key '$key' from config for recipe type ${this.key}")
27+
e.printStackTrace()
2928
}
3029
}
3130
}

0 commit comments

Comments
 (0)