From fbec6b0c358d6a720e5b2cfa3dd5872aaaf44ca9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Oct 2020 12:58:33 +0200 Subject: [PATCH] puts -> printandlog --- client/src/cmdscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdscript.c b/client/src/cmdscript.c index bb2ee72dc..40c4f3aa6 100644 --- a/client/src/cmdscript.c +++ b/client/src/cmdscript.c @@ -292,7 +292,7 @@ static int CmdScriptRun(const char *Cmd) { // get the top of the stack as the error and pop it off const char *str = lua_tostring(lua_state, lua_gettop(lua_state)); lua_pop(lua_state, 1); - puts(str); + PrintAndLogEx(FAILED, _RED_("error") " - %s", str); } //luaL_dofile(lua_state, buf);