From 1745c50878435cb24aeed98ee70f8caad9692b6c Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sat, 15 Jul 2023 09:26:00 +0200 Subject: [PATCH] Improve error behaviour of //generate --- .../src/main/java/com/sk89q/worldedit/EditSession.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index f8a08148b..780ba90e1 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -2991,9 +2991,10 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { } catch (ExpressionTimeoutException e) { timedOut[0] = timedOut[0] + 1; return null; + } catch (RuntimeException e) { + throw e; } catch (Exception e) { - LOGGER.warn("Failed to create shape", e); - return null; + throw new RuntimeException(e); } } };