Commit eab0b577 authored by Victor Zverovich's avatar Victor Zverovich

Report filename in exception.

parent e4461970
......@@ -73,7 +73,7 @@ fmt::BufferedFile::~BufferedFile() FMT_NOEXCEPT(true) {
fmt::BufferedFile::BufferedFile(fmt::StringRef filename, fmt::StringRef mode) {
FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())), 0);
if (!file_)
throw SystemError(errno, "cannot open file");
throw SystemError(errno, "cannot open file {}", path);
}
void fmt::BufferedFile::close() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment