diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-06-01 21:15:59 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-06-01 21:15:59 +0100 |
| commit | 8f6fc6a0f3bad813f6f7a6ca5cd8ae56afd31cc3 (patch) | |
| tree | e7611265f4e905330910ebdc3d4f1c317b4d4f67 /src/highlighter_group.cc | |
| parent | f19bb4fe6d1de14f9539768ad9a67391fc52ed87 (diff) | |
Port even more code to use format function
Diffstat (limited to 'src/highlighter_group.cc')
| -rw-r--r-- | src/highlighter_group.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highlighter_group.cc b/src/highlighter_group.cc index 8a9d364f..3224cc8a 100644 --- a/src/highlighter_group.cc +++ b/src/highlighter_group.cc @@ -15,7 +15,7 @@ void HighlighterGroup::highlight(const Context& context, HighlightFlags flags, void HighlighterGroup::add_child(HighlighterAndId&& hl) { if (m_highlighters.contains(hl.first)) - throw runtime_error("duplicate id: " + hl.first); + throw runtime_error(format("duplicate id: '{}'", hl.first)); m_highlighters.append(std::move(hl)); } @@ -31,7 +31,7 @@ Highlighter& HighlighterGroup::get_child(StringView path) StringView id(path.begin(), sep_it); auto it = m_highlighters.find(id); if (it == m_highlighters.end()) - throw child_not_found("no such id: " + id); + throw child_not_found(format("no such id: '{}'", id)); if (sep_it == path.end()) return *it->second; else |
