diff --git a/fmt/posix.cc b/fmt/posix.cc index 0443bd1f171f..76eb7f05eb86 100644 --- a/fmt/posix.cc +++ b/fmt/posix.cc @@ -135,7 +135,7 @@ fmt::LongLong fmt::File::size() const { if (size_lower == INVALID_FILE_SIZE) { DWORD error = GetLastError(); if (error != NO_ERROR) - throw WindowsError(GetLastError(), "cannot get file size"); + FMT_THROW(WindowsError(GetLastError(), "cannot get file size")); } fmt::ULongLong long_size = size_upper; return (long_size << sizeof(DWORD) * CHAR_BIT) | size_lower;