]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: hlua: use hlua_pusherror() where relevant
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Jun 2024 10:48:45 +0000 (12:48 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Jun 2024 14:30:55 +0000 (16:30 +0200)
commit6e484996c6e3e5d7fc35fef77333b4f64d514fcb
tree41415e064f1d0c609fe4a4ba2a93c585b80be448
parentf7ae84e7d1b20201b38348d9dcbaefa47eb29814
CLEANUP: hlua: use hlua_pusherror() where relevant

In hlua_map_new(), when error occurs we use a combination of luaL_where,
lua_pushfstring and lua_concat to build the error string before calling
lua_error().

It turns out that we already have the hlua_pusherror() macro which is
exactly made for that purpose so let's use it.

It could be backported to all stable versions to ease code maintenance.
src/hlua.c