fix odebug calls

This commit is contained in:
EricFromCanada 2020-07-06 15:29:15 -04:00
parent 565becc904
commit a6643b4adf
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ module Cask
check_bitbucket_repository
self
rescue => e
odebug "#{e.message}\n#{e.backtrace.join("\n")}"
odebug e, e.backtrace
add_error "exception while auditing #{cask}: #{e.message}"
self
end

View File

@ -50,7 +50,7 @@ class FormulaVersions
rescue *IGNORED_EXCEPTIONS => e
# We rescue these so that we can skip bad versions and
# continue walking the history
odebug "#{e} in #{name} at revision #{rev}", e.backtrace if debug?
odebug "#{e} in #{name} at revision #{rev}", e.backtrace
rescue FormulaUnavailableError
nil
ensure
@ -69,7 +69,7 @@ class FormulaVersions
end
return map if versions_seen > MAX_VERSIONS_DEPTH
rescue MacOSVersionError => e
odebug "#{e} in #{name} at revision #{rev}" if debug?
odebug "#{e} in #{name} at revision #{rev}"
break
end
map