Add ofail command to print error and exit.
This commit is contained in:
parent
5d84df0210
commit
d4f7577185
@ -53,6 +53,10 @@ def onoe error
|
|||||||
puts lines unless lines.empty?
|
puts lines unless lines.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ofail error
|
||||||
|
onoe error
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
def pretty_duration s
|
def pretty_duration s
|
||||||
return "2 seconds" if s < 3 # avoids the plural problem ;)
|
return "2 seconds" if s < 3 # avoids the plural problem ;)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user