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
end
true
rescue LoadError => e
# we should raise on syntax errors but not if the file doesn't exist.
raise unless e.message.include?(path)
rescue LoadError
false
end
def ohai_title(title)