aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
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()};
}