From cb02186c77e307922a92176893d8a323641dacaf Mon Sep 17 00:00:00 2001 From: Delapouite Date: Fri, 6 Apr 2018 16:56:53 +0200 Subject: Make error messages more consistent --- src/string_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string_utils.cc') 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 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; -- cgit v1.2.3