Improve error message

This commit is contained in:
TheAssassin
2018-12-06 11:56:21 +01:00
parent 640b756a7f
commit a12f3ac0fe

View File

@@ -106,7 +106,9 @@ namespace linuxdeploy {
// conform to desktop file spec again
(c == '[') || (c == ']')
))
throw ParseError("Key contains invalid character " + std::string{c});
throw ParseError(
"Key " + key + " contains invalid character " + std::string{c}
);
}
auto& section = sections[currentSectionName];