From cd27832eed771ec4d2dcf95dda92697543a1ca15 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 10 Jan 2022 14:32:52 +0100 Subject: [PATCH] improved yaml error reporting --- src/configManagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configManagement.cpp b/src/configManagement.cpp index 469f08b..e380172 100644 --- a/src/configManagement.cpp +++ b/src/configManagement.cpp @@ -71,7 +71,7 @@ void ConfigBuilder::parseFile(const string& fname) { }else{ match = line.find(':'); - if (match == string::npos)throw config_error("Invalid line : " + line); + if (match == string::npos)throw config_error("Line "+ to_string(currentIndent)+" invalid : |"+line+"|"); string key = line.substr(0, match); string value = line.substr(match + 1); trimSpaces(key);