BUG/MINOR: lua: missing "\n" in error message
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 23:55:53 +0000 (00:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 10:38:26 +0000 (11:38 +0100)
Just replace ".n" by "\n"

This could be backported until 1.9, but it is not so important.

(cherry picked from commit de6145f747e38a5da455ccb8a84ebfc1cd2f517f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 518017fb119b11fa3f0ceaba3258ea237513fadc)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 2a7ab9b27392cea15f36db16cdf9f1f0343c25af)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

src/hlua.c

index 5377fbb..59b8208 100644 (file)
@@ -7556,7 +7556,7 @@ static int hlua_load(char **args, int section_type, struct proxy *curpx,
                lua_pop(gL.T, 1);
                return -1;
        case LUA_ERRMEM:
-               memprintf(err, "Lua out of memory error.n");
+               memprintf(err, "Lua out of memory error\n");
                return -1;
        case LUA_ERRERR:
                memprintf(err, "Lua message handler error: %s\n", lua_tostring(gL.T, -1));