summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-02-02 14:54:35 -0800
committerelijah <elijah@riseup.net>2015-02-02 14:54:35 -0800
commit406a5bc18a5e5733d081c785984f06ad730a8dba (patch)
tree14473129fd2b1e3dda9bd7b5dcba97548aca7398
parente01bf415d80883c369dfd4247aae401fde421b80 (diff)
fix bail! typo
-rw-r--r--lib/leap_cli/commands/ca.rb4
1 files 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