mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Make the runtime copy error more verbose.
This commit is contained in:
@@ -91,7 +91,8 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
|||||||
auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
|
auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
|
||||||
if (!fs::copy_file(modpath.str(), pbuf.str(), fs::copy_options::overwrite_existing, ec) || ec)
|
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;
|
return MOD_ERR_FILE_IO;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user