From d5eb5e08c9f477e8b99e9833c033321ef115bd65 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 27 Oct 2020 16:15:09 +0300 Subject: uniform error messages --- src/convert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 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()}; } -- cgit v1.2.3