diff --git a/src/error.cpp b/src/error.cpp index c4ce1f2e01..135f4730d8 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -163,7 +163,7 @@ const char* Error::what() const noexcept { } void Error::setMsg(int count) { - std::string msg{errList.at(static_cast(code_))}; + std::string msg{_(errList.at(static_cast(code_)))}; auto pos = msg.find("%0"); if (pos != std::string::npos) { msg.replace(pos, 2, std::to_string(static_cast(code_)));