r = rgw::lua::install_packages(dpp, driver, null_yield, path,
failed_packages, output);
if (r < 0) {
- dout(1) << "WARNING: failed to install lua packages from allowlist"
+ dout(1) << "WARNING: failed to install lua packages from allowlist. error: " << r
<< dendl;
}
if (!output.empty()) {
if (std::filesystem::remove_all(luarocks_path, ec)
== static_cast<std::uintmax_t>(-1) &&
ec != std::errc::no_such_file_or_directory) {
- output.append("failed to clear luarock directory: ");
+ output.append("failed to clear luarocks directory: ");
output.append(ec.message());
output.append("\n");
return ec.value();
return 0;
}
if (ret < 0) {
+ output.append("failed to get lua package list");
return ret;
}
// verify that luarocks exists
const auto p = bp::search_path("luarocks");
if (p.empty()) {
+ output.append("failed to find luarocks");
return -ECHILD;
}