aboutsummaryrefslogtreecommitdiff
path: root/src/common/ErrnoException.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-15 22:41:11 +0800
committercrupest <crupest@outlook.com>2022-01-15 22:41:11 +0800
commit570e95f4551385a81eb2cf6f2e386e3b0cb291a8 (patch)
tree8ed08ab29f49b260ac66e88a75aa436c4daefb57 /src/common/ErrnoException.cpp
parentabb9d48a72e2d580d6bfbfcb600795c5ec66e204 (diff)
downloadcru-570e95f4551385a81eb2cf6f2e386e3b0cb291a8.tar.gz
cru-570e95f4551385a81eb2cf6f2e386e3b0cb291a8.tar.bz2
cru-570e95f4551385a81eb2cf6f2e386e3b0cb291a8.zip
...
Diffstat (limited to 'src/common/ErrnoException.cpp')
-rw-r--r--src/common/ErrnoException.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/ErrnoException.cpp b/src/common/ErrnoException.cpp
index df2349ac..15d298b3 100644
--- a/src/common/ErrnoException.cpp
+++ b/src/common/ErrnoException.cpp
@@ -7,5 +7,6 @@ ErrnoException::ErrnoException(const String& message)
: ErrnoException(message, errno) {}
ErrnoException::ErrnoException(const String& message, int errno_code)
- : Exception(message), errno_code_(errno_code) {}
+ : Exception(Format(u"{}. Errno is {}.", message, errno_code)),
+ errno_code_(errno_code) {}
} // namespace cru