From: Tobias Ulmer Date: Mon, 11 Feb 2019 17:48:54 +0000 (+0100) Subject: eio: use luaL_error X-Git-Tag: e2factory-2.3.18rc1~64 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=149fac74f03e94b121af1482f15759a090783483;p=e2factory.git eio: use luaL_error Signed-off-by: Tobias Ulmer --- 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);