Skip to content

Commit

Permalink
Merge pull request #1104 from ichii386/handle_path_not_found
Browse files Browse the repository at this point in the history
handle ERROR_PATH_NOT_FOUND
  • Loading branch information
nurse authored Jul 13, 2016
2 parents 7980f69 + 8980ef3 commit 5030258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/file_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def initialize(path, mode='r', sharemode=FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_S
0, creationdisposition, FILE_ATTRIBUTE_NORMAL, 0)
if @file_handle == INVALID_HANDLE_VALUE
err = GetLastError.call
if err == ERROR_FILE_NOT_FOUND || err == ERROR_ACCESS_DENIED
if err == ERROR_FILE_NOT_FOUND || err == ERROR_PATH_NOT_FOUND || err == ERROR_ACCESS_DENIED
raise SystemCallError.new(2)
end
raise SystemCallError.new(err)
Expand Down

0 comments on commit 5030258

Please sign in to comment.