From c984c05f2f2d6c9cee4a0eb561fd7184786c5d1d Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 25 Jan 2020 13:19:49 +0100 Subject: Minor fixes --- grammer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grammer.cpp') diff --git a/grammer.cpp b/grammer.cpp index 796c099..508d6c5 100644 --- a/grammer.cpp +++ b/grammer.cpp @@ -179,7 +179,7 @@ bool Tree::Add(const Token& token, const BNF& bnf, const std::map parent_nodes = getParentTreeNode(bnf, reverseBNF); if (parent_nodes.size() == 0) - throw std::runtime_error("Couldn't add new parent node for "s + nodes[root].token.type); + throw std::runtime_error("Couldn't add new parent node for "s + nodes[root].token.type + "("s + std::to_string(root) + ")"s); for (const auto &i : parent_nodes) { AddRootNode(i); -- cgit v1.2.3