]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: lua: report the correct function name in an error message
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2015 13:22:28 +0000 (14:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2015 14:33:55 +0000 (15:33 +0100)
"req_channel" was reported instead of "res_channel". This is harmless.

src/hlua.c

index fb39dc11f09c27f138bf5897b74798f1e8a027b6..084b7d52af3237b7a3fbf5c103468c8876d02ac4 100644 (file)
@@ -2578,7 +2578,7 @@ __LJMP static int hlua_txn_res_channel(lua_State *L)
 {
        struct hlua_txn *s;
 
-       MAY_LJMP(check_args(L, 1, "req_channel"));
+       MAY_LJMP(check_args(L, 1, "res_channel"));
        s = MAY_LJMP(hlua_checktxn(L, 1));
 
        if (!hlua_channel_new(L, s->s, s->s->rep))