From 162979c2da617859bd65627aae3cbdd0b56d918a Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Wed, 8 Mar 2023 20:01:04 -0300 Subject: [PATCH] fix error message in enableHook --- loader/src/loader/ModImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/loader/ModImpl.cpp b/loader/src/loader/ModImpl.cpp index 6c0146d4..d0e69d2d 100644 --- a/loader/src/loader/ModImpl.cpp +++ b/loader/src/loader/ModImpl.cpp @@ -500,7 +500,7 @@ Result<> Mod::Impl::enableHook(Hook* hook) { auto res = hook->enable(); if (res) m_hooks.push_back(hook); 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;