From 3fe076087ea50ca56f211c4f4c00c8c08b0479da Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 18 Mar 2026 18:43:03 +0200 Subject: fix: handle bundler self_manager.rb error with Errno::ENOENT --- snippets/hyperstack/hyperstack.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'snippets/hyperstack') diff --git a/snippets/hyperstack/hyperstack.rb b/snippets/hyperstack/hyperstack.rb index d5b409b..dd83225 100755 --- a/snippets/hyperstack/hyperstack.rb +++ b/snippets/hyperstack/hyperstack.rb @@ -3,12 +3,8 @@ begin require 'bundler/setup' -rescue LoadError +rescue LoadError, Gem::GemNotFoundException, Gem::LoadError, Errno::ENOENT nil -rescue Gem::Exception => e - # Ruby can ship with a Bundler library version whose matching executable - # is not installed locally. Fall back to direct gem loading in that case. - raise unless e.is_a?(Gem::GemNotFoundException) || e.is_a?(Gem::LoadError) end require 'json' -- cgit v1.2.3