summaryrefslogtreecommitdiff
path: root/shared/file_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/file_io.cpp')
-rw-r--r--shared/file_io.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/file_io.cpp b/shared/file_io.cpp
index 345234fd..95c14c49 100644
--- a/shared/file_io.cpp
+++ b/shared/file_io.cpp
@@ -60,7 +60,8 @@ FileInput::FileInput(const Zstring& filename) : //throw FileError()
{
const DWORD lastError = ::GetLastError();
const wxString& errorMessage = wxString(_("Error opening file:")) + wxT("\n\"") + zToWx(filename_) + wxT("\"") + wxT("\n\n") + ffs3::getLastErrorFormatted(lastError);
- if (lastError == ERROR_FILE_NOT_FOUND)
+ if (lastError == ERROR_FILE_NOT_FOUND ||
+ lastError == ERROR_PATH_NOT_FOUND)
throw ErrorNotExisting(errorMessage);
else
throw FileError(errorMessage);
bgstack15