fs/io/FileOutputStream: use C++ exceptions in Commit()

This commit is contained in:
Max Kellermann
2015-12-16 00:24:41 +01:00
parent 24b2198668
commit 7eae3bc8c5
8 changed files with 61 additions and 44 deletions

View File

@@ -411,8 +411,7 @@ SimpleDatabase::Save(Error &error)
}
#endif
if (!fos.Commit(error))
return false;
fos.Commit();
FileInfo fi;
if (GetFileInfo(path, fi))