#3130: fix error handling: report original error before close()

This commit is contained in:
Günter Obiltschnig
2021-06-14 18:59:56 +02:00
parent 90be9b0e53
commit 97ae6924dd
2 changed files with 36 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ namespace Poco {
class FileImpl
{
protected:
enum Options
enum Options
{
OPT_FAIL_ON_OVERWRITE_IMPL = 0x01
};
@@ -65,6 +65,7 @@ protected:
FileSizeImpl totalSpaceImpl() const;
FileSizeImpl usableSpaceImpl() const;
FileSizeImpl freeSpaceImpl() const;
static void handleLastErrorImpl(int err, const std::string& path);
static void handleLastErrorImpl(const std::string& path);
private: