Only modify report_on_exception if the method is available

This commit is contained in:
Chris Roberts 2018-04-02 12:10:59 -07:00
parent 1dafc6b82e
commit 0139fe052b
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ module Vagrant
logger.debug("starting plugin check")
@checkpoint_thread = Thread.new do
Thread.current.abort_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",