summaryrefslogtreecommitdiffhomepage
path: root/grammer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-01-25 13:19:49 +0100
committerRoland Reichwein <mail@reichwein.it>2020-01-25 13:19:49 +0100
commitc984c05f2f2d6c9cee4a0eb561fd7184786c5d1d (patch)
treeede659042357aa5b7a3564c650edf8b42f9d7c71 /grammer.cpp
parente172ed9f799501c234c8da18cef829244473f1d7 (diff)
Minor fixes
Diffstat (limited to 'grammer.cpp')
-rw-r--r--grammer.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string, s
std::vector<TreeNode> 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);