Fix test.

This commit is contained in:
Victor Zverovich 2014-04-30 13:34:52 -07:00
parent d35411817e
commit f3a86e83fe

View File

@ -301,7 +301,7 @@ TEST(UtilTest, ThrowWinError) {
const int TEST_ERROR = ERROR_FILE_EXISTS;
fmt::SystemError error("", 0);
try {
fmt::ThrowSystemError(TEST_ERROR, "test {}") << "error";
fmt::ThrowWinError(TEST_ERROR, "test {}") << "error";
} catch (const fmt::SystemError &e) {
error = e;
}