summaryrefslogtreecommitdiff
path: root/src/selectors.cc
diff options
context:
space:
mode:
authorDelapouite <delapouite@gmail.com>2018-04-06 16:56:53 +0200
committerDelapouite <delapouite@gmail.com>2018-04-06 16:56:53 +0200
commitcb02186c77e307922a92176893d8a323641dacaf (patch)
tree5e363e2adf794ff74fc00a96d4d01abff950b540 /src/selectors.cc
parent4ff0c58518228ab114bf1167c14dadc6ee2212c3 (diff)
Make error messages more consistent
Diffstat (limited to 'src/selectors.cc')
-rw-r--r--src/selectors.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectors.cc b/src/selectors.cc
index 124958e2..f7f1a367 100644
--- a/src/selectors.cc
+++ b/src/selectors.cc
@@ -900,7 +900,7 @@ Selection find_next_match(const Context& context, const Selection& sel, const Re
: find_prev(buffer, pos, matches, regex, wrapped);
if (not found or matches[0].first == buffer.end())
- throw runtime_error(format("'{}': no matches found", regex.str()));
+ throw runtime_error(format("no matches found: '{}'", regex.str()));
CaptureList captures;
for (const auto& match : matches)