From c33c6f9240a9d2dbc67f848113b7b49b84b3889a Mon Sep 17 00:00:00 2001 From: mbergen Date: Thu, 15 Aug 2024 17:58:23 +0200 Subject: [PATCH] fix(standard): Prevent nil display if called module returns nothing (#4543) fix(lua) Prevent nil display if called module returns nothing --- standard/lua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/lua.lua b/standard/lua.lua index 678b7023182..88794198ef8 100644 --- a/standard/lua.lua +++ b/standard/lua.lua @@ -156,7 +156,7 @@ function Lua.callAndDisplayErrors(fn, frame, hardErrors) local ErrorExt = require('Module:Error/Ext') local result = Logic.tryOrElseLog(function() return fn(frame) end) - local parts = {tostring(result)} + local parts = result and {tostring(result)} or {} local errors = ErrorExt.Stash.retrieve() if #errors > 0 then