mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 23:00:48 +00:00
include backtrace in error log
This commit is contained in:
parent
9ed21ffc38
commit
f4be09be2a
@ -74,7 +74,11 @@ module Voicemeeter
|
|||||||
end
|
end
|
||||||
res
|
res
|
||||||
rescue Errors::VMCAPIError => e
|
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
|
raise
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -32,7 +32,11 @@ module Voicemeeter
|
|||||||
Pathname.new(value).dirname
|
Pathname.new(value).dirname
|
||||||
end
|
end
|
||||||
rescue Win32::Registry::Error => e
|
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"
|
raise Errors::VMInstallError.new "unable to read Voicemeeter path from the registry"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user