From 149fac74f03e94b121af1482f15759a090783483 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 11 Feb 2019 18:48:54 +0100 Subject: [PATCH] eio: use luaL_error Signed-off-by: Tobias Ulmer --- generic/leio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generic/leio.c b/generic/leio.c index 7539bcf..6c21e36 100644 --- a/generic/leio.c +++ b/generic/leio.c @@ -47,9 +47,8 @@ eio_fopen(lua_State *lua) fd = fileno(f); if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { - lua_pushfstring(lua, "%s: fcntl(%d): %s: %s", __func__, + luaL_error(lua, "%s: fcntl(%d): %s: %s", __func__, fd, file, strerror(errno)); - lua_error(lua); } lua_pushlightuserdata(lua, f); -- 2.39.5