From f6e00525db29a45720221da61dfca46dcd944eb6 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 7 Mar 2018 22:05:23 +0000 Subject: [PATCH] lualoader: Return status in cli_execute_unparsed properly cli_execute was changed to return the status, cascade that to cli_execute_unparsed. This fixes a lot of false "Failed to execute" errors following r330620; no failures actually occurred, but [module]_error would've then promptly executed (and also "failed") --- stand/lua/cli.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua index cb27d3a46752..01724e2c3065 100644 --- a/stand/lua/cli.lua +++ b/stand/lua/cli.lua @@ -95,7 +95,7 @@ function cli_execute(...) end function cli_execute_unparsed(str) - cli_execute(loader.parse(str)) + return cli_execute(loader.parse(str)) end -- Module exports