extend/kernel: fix failures with differing filenames.

This commit is contained in:
Mike McQuaid 2025-07-14 17:32:09 +01:00
parent b003683816
commit 6a5a48de29
No known key found for this signature in database

View File

@ -26,9 +26,8 @@ module Kernel
require path require path
end end
true true
rescue LoadError => e rescue LoadError
# we should raise on syntax errors but not if the file doesn't exist. false
raise unless e.message.include?(path)
end end
def ohai_title(title) def ohai_title(title)