mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
include backtrace in error log
This commit is contained in:
parent
9ed21ffc38
commit
f4be09be2a
@ -74,7 +74,11 @@ module Voicemeeter
|
||||
end
|
||||
res
|
||||
rescue Errors::VMCAPIError => e
|
||||
logger.error "#{e.class.name}: #{e.message}"
|
||||
err_msg = [
|
||||
"#{e.class.name}: #{e.message}",
|
||||
*e.backtrace
|
||||
]
|
||||
logger.error err_msg.join("\n")
|
||||
raise
|
||||
end
|
||||
|
||||
|
@ -32,7 +32,11 @@ module Voicemeeter
|
||||
Pathname.new(value).dirname
|
||||
end
|
||||
rescue Win32::Registry::Error => e
|
||||
logger.error "#{e.class.name}: #{e.message}"
|
||||
err_msg = [
|
||||
"#{e.class.name}: #{e.message}",
|
||||
*e.backtrace
|
||||
]
|
||||
logger.error err_msg.join("\n")
|
||||
raise Errors::VMInstallError.new "unable to read Voicemeeter path from the registry"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user