From efd79c8977e51dec63d2a2c49a873cad004103ca Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 14 Sep 2008 12:30:16 +0000 Subject: Be more verbose in ValidateNotEmpty on failure. Patch by CyberbotX. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10544 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configreader.cpp b/src/configreader.cpp index cce362ed2..8f50e0762 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -362,10 +362,10 @@ bool ValidateMotd(ServerConfig* conf, const char*, const char*, ValueItem &data) return true; } -bool ValidateNotEmpty(ServerConfig*, const char* tag, const char*, ValueItem &data) +bool ValidateNotEmpty(ServerConfig*, const char* tag, const char* val, ValueItem &data) { if (!*data.GetString()) - throw CoreException(std::string("The value for ")+tag+" cannot be empty!"); + throw CoreException(std::string("The value for <")+tag+":"+val+"> cannot be empty!"); return true; } -- cgit v1.2.3