fix error message in HighlighterGroup
This commit is contained in:
parent
9444c84b1c
commit
d1cc86d95d
|
@ -15,7 +15,7 @@ void HighlighterGroup::operator()(DisplayBuffer& display_buffer)
|
|||
void HighlighterGroup::append(HighlighterAndId&& highlighter)
|
||||
{
|
||||
if (m_highlighters.contains(highlighter.first))
|
||||
throw runtime_error("highlighter id not found " + highlighter.first);
|
||||
throw runtime_error("duplicate highlighter id: " + highlighter.first);
|
||||
|
||||
m_highlighters.append(std::forward<HighlighterAndId>(highlighter));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user