diff options
author | Sadie Powell <sadie@witchery.services> | 2022-12-18 10:35:11 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-12-18 10:35:11 +0000 |
commit | 3f867c1e11f56ff0632168ddb3fac844c60abc4f (patch) | |
tree | 37881571e00c7e9d243494ba904d73323a59e2e1 /src | |
parent | 2f46739931759dc360448a5e7f45e4ce6f7d9b7f (diff) |
Show the invalid config value in the rejection message.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.cpp b/src/config.cpp index f1d237a5d..a3981e7c8 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -95,13 +95,13 @@ template<> bool Block::Get(const Anope::string &tag, const Anope::string &def) c static void ValidateNotEmpty(const Anope::string &block, const Anope::string &name, const Anope::string &value) { if (value.empty()) - throw ConfigException("The value for <" + block + ":" + name + "> cannot be empty!"); + throw ConfigException("The value for <" + block + ":" + name + "> (" + value + ") cannot be empty!"); } static void ValidateNoSpaces(const Anope::string &block, const Anope::string &name, const Anope::string &value) { if (value.find(' ') != Anope::string::npos) - throw ConfigException("The value for <" + block + ":" + name + "> may not contain spaces!"); + throw ConfigException("The value for <" + block + ":" + name + "> (" + value + ") may not contain spaces!"); } static void ValidateNotEmptyOrSpaces(const Anope::string &block, const Anope::string &name, const Anope::string &value) |