Skip to content
Snippets Groups Projects
Commit a6643b4a authored by EricFromCanada's avatar EricFromCanada
Browse files

fix odebug calls

parent 565becc9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment