diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-27 16:15:09 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-27 16:15:09 +0300 |
commit | d5eb5e08c9f477e8b99e9833c033321ef115bd65 (patch) | |
tree | 311bd60f3c23c6f480802ba3cc98513e68ad481f /src | |
parent | much more type-safe & generic overloads (diff) | |
download | winapi-utf8-d5eb5e08c9f477e8b99e9833c033321ef115bd65.tar.gz winapi-utf8-d5eb5e08c9f477e8b99e9833c033321ef115bd65.zip |
uniform error messages
Diffstat (limited to '')
-rw-r--r-- | src/convert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/convert.cpp b/src/convert.cpp index 0d24424..cb0bc1c 100644 --- a/src/convert.cpp +++ b/src/convert.cpp @@ -39,7 +39,7 @@ int convert_input_bytes_to_bytes(std::size_t nb) { int convert_input_bytes_to_chars(std::size_t nb) { if (nb % sizeof(WCHAR) != 0) { std::ostringstream oss; - oss << "Invalid buffer size " << nb << " bytes"; + oss << "Buffer size invalid at " << nb << " bytes"; throw std::runtime_error{oss.str()}; } @@ -62,7 +62,7 @@ std::vector<CharT> output_buffer(int size) { if (!SafeCast(size, real_size)) { std::ostringstream oss; - oss << "Invalid buffer size " << size << " bytes"; + oss << "Buffer size invalid at " << size << " bytes"; throw std::runtime_error{oss.str()}; } |