diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2026-04-28 21:09:16 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2026-04-28 21:09:28 +0200 |
| commit | 42643b5543408b9c0b62b16b86834211db1c05e8 (patch) | |
| tree | e8f5bb980093bb63fc80c9e617175d8be5c41d8a | |
| parent | e2d0c3596510f152a8d65bc8802414864e1825b2 (diff) | |
grammar: More verbose error
| -rw-r--r-- | src/grammar.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grammar.cc b/src/grammar.cc index 6ed2766..c94a86f 100644 --- a/src/grammar.cc +++ b/src/grammar.cc @@ -224,7 +224,8 @@ class GrammarLoader { if (root_index.has_value()) { errors_.warn(first_pass_elements.find(second_pass_elements[i]->name) ->second.loc, - "Is not referenced but also not root"); + std::format("{} is not referenced but also not root", + second_pass_elements[i]->name)); } else { root_index = i; } |
