fix error message in HighlighterGroup

This commit is contained in:
Maxime Coste 2012-04-03 13:08:13 +00:00
parent 9444c84b1c
commit d1cc86d95d

View File

@ -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));
}