1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 15:44:46 +02:00

Make the runtime copy error more verbose.

This commit is contained in:
Sadie Powell
2026-05-12 14:10:04 +01:00
parent 9469cb8b0e
commit 92ed0071d7
+2 -1
View File
@@ -91,7 +91,8 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
if (!fs::copy_file(modpath.str(), pbuf.str(), fs::copy_options::overwrite_existing, ec) || ec)
{
Log(LOG_TERMINAL) << "Error while loading " << modname << ": " << ec.message();
Log(LOG_TERMINAL) << "Error while copying " << modname << " from " << modpath
<< " to " << pbuf << ": " << ec.message();
return MOD_ERR_FILE_IO;
}
#else