Only modify report_on_exception if the method is available
This commit is contained in:
parent
1dafc6b82e
commit
0139fe052b
|
@ -75,7 +75,9 @@ module Vagrant
|
|||
logger.debug("starting plugin check")
|
||||
@checkpoint_thread = Thread.new do
|
||||
Thread.current.abort_on_exception = false
|
||||
Thread.current.report_on_exception = false
|
||||
if Thread.current.respond_to?(:report_on_exception=)
|
||||
Thread.current.report_on_exception = false
|
||||
end
|
||||
begin
|
||||
Thread.current[:result] = Checkpoint.check(
|
||||
product: "vagrant",
|
||||
|
|
Loading…
Reference in New Issue