Simplify onoe
This commit is contained in:
parent
5abcfad97e
commit
f34fcd7781
@ -58,9 +58,7 @@ def opoo warning
|
||||
end
|
||||
|
||||
def onoe error
|
||||
lines = error.to_s.split("\n")
|
||||
STDERR.puts "#{Tty.red}Error#{Tty.reset}: #{lines.shift}"
|
||||
STDERR.puts lines unless lines.empty?
|
||||
STDERR.puts "#{Tty.red}Error#{Tty.reset}: #{error}"
|
||||
end
|
||||
|
||||
def ofail error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user