Skip to content

Commit

Permalink
posix.cc: Fix compilation with -fno-exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong authored and vitaut committed Feb 16, 2018
1 parent 24d66c5 commit 7d2723d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ void fmt::File::dup2(int fd) {
int result = 0;
FMT_RETRY(result, FMT_POSIX_CALL(dup2(fd_, fd)));
if (result == -1) {
throw system_error(errno,
"cannot duplicate file descriptor {} to {}", fd_, fd);
FMT_THROW(system_error(errno,
"cannot duplicate file descriptor {} to {}", fd_, fd));
}
}

Expand Down

0 comments on commit 7d2723d

Please sign in to comment.