1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-03-03 14:52:21 +02:00

Fixed misleading error message when a file was opened for write in a missing directory.

This commit is contained in:
David Steele 2017-06-27 17:07:12 -04:00
parent 2310e423e9
commit f3b62d2d67
2 changed files with 6 additions and 0 deletions

View File

@ -196,6 +196,10 @@
<p>Harden protocol handshake to handle race conditions.</p>
</release-item>
<release-item>
<p>Fixed misleading error message when a file was opened for write in a missing directory.</p>
</release-item>
<release-item>
<p>Change log level of hardlink logging to <id>detail</id>.</p>
</release-item>

View File

@ -107,6 +107,8 @@ sub open
$self->{bPathCreate} = false;
return $self->open();
}
logErrorResult($OS_ERROR{ENOENT} ? ERROR_PATH_MISSING : ERROR_FILE_OPEN, "unable to open '${strFile}'", $OS_ERROR);
}
# Set file mode to binary