From a9307d37253255a5d0b65a73cb7bfd0bb5e8c272 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:13:20 -0700 Subject: [PATCH] Update validate.lua --- worldeditadditions_core/utils/notify/validate.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldeditadditions_core/utils/notify/validate.lua b/worldeditadditions_core/utils/notify/validate.lua index 72a6ebb..05a7e4b 100644 --- a/worldeditadditions_core/utils/notify/validate.lua +++ b/worldeditadditions_core/utils/notify/validate.lua @@ -2,7 +2,8 @@ -- Helper functions local log_error = function(message) - minetest.log("error", "[-- WEA :: error --] " .. message) + minetest.log("error", "[-- WEA :: error --] " .. tostring(message) .. + " " .. debug.traceback()) end -- @class validate @@ -13,8 +14,7 @@ local validate = {} -- - @returns : True if the name is valid, false otherwise. validate.name = function(name) if type(name) ~= "string" then - log_error(tostring(name) .. " is a " .. type(name) .. - " not a string.\n" .. debug.traceback()) + log_error(tostring(name) .. " is a " .. type(name) .. " not a string.\n") return false elseif not minetest.get_player_by_name then -- Very paranoid is me log_error("minetest.get_player_by_name is not a function. THIS SHOULD NEVER HAPPEN.")