aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-27 16:15:09 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-27 16:15:09 +0300
commitd5eb5e08c9f477e8b99e9833c033321ef115bd65 (patch)
tree311bd60f3c23c6f480802ba3cc98513e68ad481f /src
parentmuch more type-safe & generic overloads (diff)
downloadwinapi-utf8-d5eb5e08c9f477e8b99e9833c033321ef115bd65.tar.gz
winapi-utf8-d5eb5e08c9f477e8b99e9833c033321ef115bd65.zip
uniform error messages
Diffstat (limited to '')
-rw-r--r--src/convert.cpp4
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()};
}