lib/hanami/cli/commands/command.rb in hanami-2.0.0.alpha1 vs lib/hanami/cli/commands/command.rb in hanami-2.0.0.alpha2

- old
+ new

@@ -13,11 +13,11 @@ class CLI module Commands # Abstract command # # @since 1.1.0 - class Command < Hanami::CLI::Command + class Command < Dry::CLI::Command # @since 1.1.0 # @api private def self.inherited(component) super @@ -70,12 +70,12 @@ # @since 1.1.0 # @api private def call(**options) # FIXME: merge ENV vars (like HANAMI_ENV) into **options super(options) - rescue StandardError => e - warn e.message - warn e.backtrace.join("\n\t") + rescue StandardError => exception + warn exception.message + warn exception.backtrace.join("\n\t") exit(1) end end # @since 1.1.0