diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-08 02:41:01 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-08 02:41:01 +0100 |
| commit | ab2c61054f09e0834cba6008263096f2afdfd4d0 (patch) | |
| tree | 71be720c2c8d61e4092b0593701c6f2dac25c1cb | |
| parent | 485a4f3e1538f6ab17569b99619fa31e30373201 (diff) | |
| download | cxxformat-ab2c61054f09e0834cba6008263096f2afdfd4d0.tar.gz cxxformat-ab2c61054f09e0834cba6008263096f2afdfd4d0.zip | |
Fix error strings
| -rw-r--r-- | include/cxxformat/formatters.hpp | 4 |
1 files 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}}; } } |
