formula: fix inreplace errors not being printed
This commit is contained in:
parent
3a57d0904b
commit
60b0c337df
@ -2324,7 +2324,8 @@ class Formula
|
|||||||
# @api public
|
# @api public
|
||||||
def inreplace(paths, before = nil, after = nil, audit_result = true) # rubocop:disable Style/OptionalBooleanParameter
|
def inreplace(paths, before = nil, after = nil, audit_result = true) # rubocop:disable Style/OptionalBooleanParameter
|
||||||
super(paths, before, after, audit_result)
|
super(paths, before, after, audit_result)
|
||||||
rescue Utils::Inreplace::Error
|
rescue Utils::Inreplace::Error => e
|
||||||
|
onoe e.to_s
|
||||||
raise BuildError.new(self, "inreplace", paths, {})
|
raise BuildError.new(self, "inreplace", paths, {})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user