From 406a5bc18a5e5733d081c785984f06ad730a8dba Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 2 Feb 2015 14:54:35 -0800 Subject: fix bail! typo --- lib/leap_cli/commands/ca.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/leap_cli/commands/ca.rb b/lib/leap_cli/commands/ca.rb index 785e043..9b3409a 100644 --- a/lib/leap_cli/commands/ca.rb +++ b/lib/leap_cli/commands/ca.rb @@ -503,10 +503,10 @@ module LeapCli; module Commands def yesterday_advance(string) number, unit = string.split(' ') unless ['years', 'months', 'days', 'hours', 'minutes'].include? unit - bail("The time property '#{string}' is missing a unit (one of: years, months, days, hours, minutes).") + bail!("The time property '#{string}' is missing a unit (one of: years, months, days, hours, minutes).") end unless number.to_i.to_s == number - bail("The time property '#{string}' is missing a number.") + bail!("The time property '#{string}' is missing a number.") end yesterday.advance(unit.to_sym => number.to_i) end -- cgit v1.2.3