Skip to content

Commit a398500

Browse files
jim-easterbrookkmilos
authored andcommitted
Restore localisation of error messages/exceptions
Signed-off-by: Jim Easterbrook <[email protected]>
1 parent 04207b9 commit a398500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const char* Error::what() const noexcept {
163163
}
164164

165165
void Error::setMsg(int count) {
166-
std::string msg{errList.at(static_cast<size_t>(code_))};
166+
std::string msg{_(errList.at(static_cast<size_t>(code_)))};
167167
auto pos = msg.find("%0");
168168
if (pos != std::string::npos) {
169169
msg.replace(pos, 2, std::to_string(static_cast<int>(code_)));

0 commit comments

Comments
 (0)