Commit 7d2723d5 authored by Andrew Gunnerson's avatar Andrew Gunnerson Committed by Victor Zverovich

posix.cc: Fix compilation with -fno-exceptions

Signed-off-by: default avatarAndrew Gunnerson <andrewgunnerson@gmail.com>
parent 24d66c5d
......@@ -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));
}
}
......
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