From: Vladimír Čunát Date: Wed, 8 Jan 2020 14:52:09 +0000 (+0100) Subject: cache opening: add strerror into the lua exception X-Git-Tag: v5.0.0~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fa7ca13155d107068d26206479f2b170de52ed8;p=thirdparty%2Fknot-resolver.git cache opening: add strerror into the lua exception Here I'm interested in "No space left on device" --- diff --git a/daemon/bindings/cache.c b/daemon/bindings/cache.c index 9733e59a5..534c92ce2 100644 --- a/daemon/bindings/cache.c +++ b/daemon/bindings/cache.c @@ -208,7 +208,8 @@ static int cache_open(lua_State *L) if (ret != 0) { char cwd[PATH_MAX]; get_workdir(cwd, sizeof(cwd)); - return luaL_error(L, "can't open cache path '%s'; working directory '%s'", opts.path, cwd); + return luaL_error(L, "can't open cache path '%s'; working directory '%s'; %s", + opts.path, cwd, kr_strerror(ret)); } /* Store current configuration */