diff options
| author | Delapouite <delapouite@gmail.com> | 2018-04-06 16:56:53 +0200 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2018-04-06 16:56:53 +0200 |
| commit | cb02186c77e307922a92176893d8a323641dacaf (patch) | |
| tree | 5e363e2adf794ff74fc00a96d4d01abff950b540 /src/string_utils.cc | |
| parent | 4ff0c58518228ab114bf1167c14dadc6ee2212c3 (diff) | |
Make error messages more consistent
Diffstat (limited to 'src/string_utils.cc')
| -rw-r--r-- | src/string_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc index 628bff32..801cd5a3 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -287,13 +287,13 @@ void format_impl(StringView fmt, ArrayView<const StringView> params, AppendFunc append(StringView{it, opening}); auto closing = std::find(opening, end, '}'); if (closing == end) - throw runtime_error("Format string error, unclosed '{'"); + throw runtime_error("format string error, unclosed '{'"); const int index = (closing == opening + 1) ? implicitIndex : str_to_int({opening+1, closing}); if (index >= params.size()) - throw runtime_error("Format string parameter index too big"); + throw runtime_error("format string parameter index too big"); append(params[index]); implicitIndex = index+1; |
