From cb8cd1311db99daae7e757dd01976ea4dd8bc8ca Mon Sep 17 00:00:00 2001 From: Jye Lee Date: Fri, 25 Oct 2019 11:43:28 -0700 Subject: [PATCH] allow showing error backtrace without having to turn on DEBUG output --- lib/bogo-cli/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bogo-cli/setup.rb b/lib/bogo-cli/setup.rb index 0abe830..93eb436 100644 --- a/lib/bogo-cli/setup.rb +++ b/lib/bogo-cli/setup.rb @@ -58,7 +58,7 @@ def define(&block) err_msg << "\n#{err.original.message}" end output_error err_msg - if ENV["DEBUG"] + if ENV["DEBUG"] || ENV["DEBUG_BACKTRACE"] output_debug "Stacktrace: #{err.class}: " \ "#{err.message}\n#{err.backtrace.join("\n")}" if err.respond_to?(:original) && err.original