Skip to content

Commit

Permalink
Ignore registry entries without valid installer data when looking for…
Browse files Browse the repository at this point in the history
… MSYS2

Fixes #154
  • Loading branch information
larskanis committed Sep 8, 2019
1 parent e3f9968 commit e817446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_installer/build/msys2_installation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def iterate_msys_paths
if subreg['DisplayName'] =~ /^MSYS2 / && File.directory?(il=subreg['InstallLocation'])
yield il
end
rescue Encoding::InvalidByteSequenceError
# Ignore entries with broken character encoding
rescue Encoding::InvalidByteSequenceError, Win32::Registry::Error
# Ignore entries without valid installer data or broken character encoding
end
end
end
Expand Down

0 comments on commit e817446

Please sign in to comment.