Refactor error reporting API.

This commit is contained in:
Victor Zverovich
2014-06-30 14:26:29 -07:00
parent d29e505568
commit 53201033f2
8 changed files with 203 additions and 132 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ void OutputRedirect::Flush() {
int result = 0;
FMT_RETRY(result, fflush(file_));
if (result != 0)
fmt::ThrowSystemError(errno, "cannot flush stream");
throw fmt::SystemError(errno, "cannot flush stream");
}
void OutputRedirect::Restore() {