config_parser: Improve message for invalid names

This commit is contained in:
patrick96 2019-10-03 22:41:37 +02:00 committed by Patrick Ziegler
parent 5a695c7065
commit 0276d11fd9
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class invalid_name_error : public syntax_error {
* type is either Header or Key
*/
invalid_name_error(const string& type, const string& name)
: syntax_error(type + " '" + name + "' contains forbidden characters.") {}
: syntax_error(type + " name '" + name + "' is empty or contains forbidden characters.") {}
};
/**