mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Log error and stacktrace on mapping errors
This commit is contained in:
parent
c6f6bf0c47
commit
e7686882fa
1 changed files with 4 additions and 0 deletions
|
|
@ -249,6 +249,10 @@ module VagrantPlugins
|
|||
end
|
||||
logger.debug("map of #{value.class} to #{to.nil? ? 'unknown' : to.inspect} => #{result}")
|
||||
result
|
||||
rescue => err
|
||||
logger.debug("mapping failed of #{value.class} to #{to.nil? ? 'unknown' : to.inspect}")
|
||||
logger.debug("#{err.class}: #{err}\n" + err.backtrace.join("\n"))
|
||||
raise
|
||||
end
|
||||
|
||||
# Generate the given type based on given and/or
|
||||
|
|
|
|||
Loading…
Reference in a new issue