From 0276d11fd906b48ff6d37da1715c59d3fd813396 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Thu, 3 Oct 2019 22:41:37 +0200
Subject: [PATCH] config_parser: Improve message for invalid names
---
include/components/config_parser.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/components/config_parser.hpp b/include/components/config_parser.hpp
index 8388f16b..0f5dc096 100644
--- a/include/components/config_parser.hpp
+++ b/include/components/config_parser.hpp
@@ -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.") {}
};
/**