From a48576a7ab6e30e57abd80fd1310ca707980ef4b Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Tue, 1 Oct 2024 06:53:32 -0700 Subject: [PATCH] Better errors? Co-authored-by: Starbeamrainbowlabs --- worldeditadditions_commands/commands/selectors/sshift.lua | 2 +- worldeditadditions_commands/commands/selectors/sshrink.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_commands/commands/selectors/sshift.lua b/worldeditadditions_commands/commands/selectors/sshift.lua index 74d39ce..79c8d44 100644 --- a/worldeditadditions_commands/commands/selectors/sshift.lua +++ b/worldeditadditions_commands/commands/selectors/sshift.lua @@ -14,7 +14,7 @@ worldeditadditions_core.register_command("sshift", { require_pos = 2, parse = function(params_text) local ret = wea_c.split(params_text) - if #ret < 1 then return false, "SSHIFT: No params found!" + if #ret < 1 then return false, "Error: No params found!" else return true, ret end end, func = function(name, params_text) diff --git a/worldeditadditions_commands/commands/selectors/sshrink.lua b/worldeditadditions_commands/commands/selectors/sshrink.lua index 560578b..cd69831 100644 --- a/worldeditadditions_commands/commands/selectors/sshrink.lua +++ b/worldeditadditions_commands/commands/selectors/sshrink.lua @@ -17,7 +17,7 @@ worldeditadditions_core.register_command("sshrink", { require_pos = 0, parse = function(params_text) local ret = wea_c.split(params_text) - if #ret < 1 then return false, "SSHRINK: No params found!" + if #ret < 1 then return false, "Error: No params found!" else return true, ret end end, func = function(name, params_text)