lib/quickl/errors.rb in quickl-0.2.2 vs lib/quickl/errors.rb in quickl-0.3.0
- old
+ new
@@ -105,12 +105,12 @@
super(*(args + [ 0 ]))
end
def react!
msg = if (self.message || "").empty?
- command.help
+ command.class.help
else
- self.message.to_s + "\n" + command.help
+ self.message.to_s + "\n" + command.class.help
end
raise Exit.new(self.exit_code), msg, backtrace
end
end # class Help
\ No newline at end of file