fix error message in enableHook

This commit is contained in:
mat 2023-03-08 20:01:04 -03:00 committed by GitHub
parent 0a37b01845
commit 162979c2da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -500,7 +500,7 @@ Result<> Mod::Impl::enableHook(Hook* hook) {
auto res = hook->enable(); auto res = hook->enable();
if (res) m_hooks.push_back(hook); if (res) m_hooks.push_back(hook);
else { else {
log::error("Can't enable hook {} for mod {}: {}", m_info.id(), res.unwrapErr()); log::error("Can't enable hook {} for mod {}: {}", hook->getDisplayName(), m_info.id(), res.unwrapErr());
} }
return res; return res;