diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-14 12:30:16 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-14 12:30:16 +0000 |
commit | efd79c8977e51dec63d2a2c49a873cad004103ca (patch) | |
tree | 11affb460da13affd8fe0bbff4b4cf0559f82db9 /src | |
parent | 1b290edc9cfba6ed94e04257035c37c4df5e5c2d (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/configreader.cpp | 4 |
1 files 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; } |