Sha256: a8962dbb38d8877978344aeeaff414cb9c26ba5336615aa8218a2a93a6f2b959
Contents?: true
Size: 325 Bytes
Versions: 10
Compression:
Stored size: 325 Bytes
Contents
module Vagrant class Action # A helper to catch any ActionExceptions raised and to # apply the error to the environment. module ExceptionCatcher def catch_action_exception(env) yield env rescue ActionException => e env.error!(e.key, e.data) false end end end end
Version data entries
10 entries across 10 versions & 2 rubygems