Add ofail command to print error and exit.

This commit is contained in:
Mike McQuaid 2012-04-14 17:17:16 +10:00
parent 5d84df0210
commit d4f7577185

View File

@ -53,6 +53,10 @@ def onoe error
puts lines unless lines.empty?
end
def ofail error
onoe error
exit 1
end
def pretty_duration s
return "2 seconds" if s < 3 # avoids the plural problem ;)