Skip to content

Commit

Permalink
Treat WinError::ERROR_DIRECTORY as an error for non-existent files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Oct 23, 2024
1 parent 2e8715d commit 94386b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crystal/system/win32/file.cr
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ module Crystal::System::File
WinError::ERROR_FILE_NOT_FOUND,
WinError::ERROR_PATH_NOT_FOUND,
WinError::ERROR_INVALID_NAME,
WinError::ERROR_DIRECTORY,
}

def self.check_not_found_error(message, path)
Expand Down

0 comments on commit 94386b6

Please sign in to comment.