diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/commands.rb | 1 | ||||
| -rw-r--r-- | lib/hcl/utility.rb | 4 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb index da3b1f0..a725ad4 100644 --- a/lib/hcl/commands.rb +++ b/lib/hcl/commands.rb @@ -88,6 +88,7 @@ module HCl      end      def log *args +      fail "There is already a timer running." if DayEntry.with_timer        start *args        stop      end diff --git a/lib/hcl/utility.rb b/lib/hcl/utility.rb index 72b4842..fd01901 100644 --- a/lib/hcl/utility.rb +++ b/lib/hcl/utility.rb @@ -1,8 +1,8 @@  module HCl    class CommandError < StandardError; end    module Utility -    def fail message -      raise CommandError, message +    def fail *message +      raise CommandError, message.join(' ')      end      def get_task_ids ident, args | 
