Refactor error reporting API.
This commit is contained in:
1 parent
d29e505568
commit
53201033f2
8 files changed
+203
-132
No files matched your search
+1
-1
@@ -1369,7 +1369,7 @@ TEST(FormatterTest, FormatExamples) {
|
||||
EXPECT_SYSTEM_ERROR({
|
||||
FILE *f = fopen(filename, "r");
|
||||
if (!f)
|
||||
fmt::ThrowSystemError(errno, "Cannot open file '{}'") << filename;
|
||||
throw fmt::SystemError(errno, "Cannot open file '{}'", filename);
|
||||
}, error_code, "Cannot open file 'nonexistent'");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user