From a8ad7c238391020f2d88a07cd31e65b303ff6826 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 13 Nov 2013 15:50:05 +0100 Subject: [PATCH] PluginManager::Bind displays more information in the error message. --- source/PluginManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp index 3ac2366ca..c1f695163 100644 --- a/source/PluginManager.cpp +++ b/source/PluginManager.cpp @@ -1511,11 +1511,11 @@ bool cPluginManager::BindConsoleCommand(const AString & a_Command, cPlugin * a_P { if (cmd->second.m_Plugin == NULL) { - LOGWARNING("Console command \"%s\" is already bound internally by MCServer.", a_Command.c_str()); + LOGWARNING("Console command \"%s\" is already bound internally by MCServer, cannot bind in plugin \"%s\".", a_Command.c_str(), a_Plugin->GetName().c_str()); } else { - LOGWARNING("Console command \"%s\" is already bound to plugin \"%s\".", a_Command.c_str(), cmd->second.m_Plugin->GetName().c_str()); + LOGWARNING("Console command \"%s\" is already bound to plugin \"%s\", cannot bind in plugin \"%s\".", a_Command.c_str(), cmd->second.m_Plugin->GetName().c_str(), a_Plugin->GetName().c_str()); } return false; }