From ab2c61054f09e0834cba6008263096f2afdfd4d0 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 8 Jan 2022 02:41:01 +0100 Subject: Fix error strings --- include/cxxformat/formatters.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cxxformat/formatters.hpp b/include/cxxformat/formatters.hpp index b9942d2..264cc52 100644 --- a/include/cxxformat/formatters.hpp +++ b/include/cxxformat/formatters.hpp @@ -59,7 +59,7 @@ namespace format { using namespace std::string_literals; if (addSign != '\0') { - throw std::invalid_argument{"‘+’ and ‘ ’ (sign related) flags are not supported for %s"s + std::string{typeDesc}}; + throw std::invalid_argument{"‘+’ and ‘ ’ (sign related) flags are not supported for "s + std::string{typeDesc}}; } } @@ -68,7 +68,7 @@ namespace format { using namespace std::string_literals; if (padding == '0') { - throw std::invalid_argument{"Zero padding (‘0’ flag) is not supported for %s"s + std::string{typeDesc}}; + throw std::invalid_argument{"Zero padding (‘0’ flag) is not supported for "s + std::string{typeDesc}}; } } -- cgit v1.2.3-54-g00ecf