extend/kernel: fix failures with differing filenames.
This commit is contained in:
parent
b003683816
commit
6a5a48de29
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user