lib/linecook/commands/command_error.rb in linecook-0.6.2 vs lib/linecook/commands/command_error.rb in linecook-1.0.0
- old
+ new
@@ -1,6 +1,12 @@
module Linecook
module Commands
class CommandError < RuntimeError
+ attr_reader :exitstatus
+
+ def initialize(msg, exitstatus=1)
+ @exitstatus = exitstatus
+ super(msg)
+ end
end
end
end
\ No newline at end of file