If user provides custom hints file with config option hints.root_file('file')
resovler fail with error. Before it just silently pass and may fail
when loading defaults file, which leads to confusing error message.
#include <ccan/json/json.h>
#include <ucw/mempool.h>
#include <contrib/cleanup.h>
+#include <lauxlib.h>
#include "daemon/engine.h"
#include "lib/zonecut.h"
struct engine *engine = env;
struct kr_context *ctx = &engine->resolver;
const char *err_msg = engine_hint_root_file(ctx, args);
+ if (err_msg) {
+ luaL_error(engine->L, "error when opening '%s': %s", args, err_msg);
+ }
return strdup(err_msg ? err_msg : "");
}