diff --git a/src/fs/io/FileOutputStream.cxx b/src/fs/io/FileOutputStream.cxx index 51f73678a..b07ca487b 100644 --- a/src/fs/io/FileOutputStream.cxx +++ b/src/fs/io/FileOutputStream.cxx @@ -270,12 +270,7 @@ FileOutputStream::Commit() #endif if (!Close()) { -#ifdef _WIN32 - throw FormatLastError("Failed to commit %s", - path.ToUTF8().c_str()); -#else throw FormatErrno("Failed to commit %s", path.c_str()); -#endif } }