From cc20d2f91e5f4858d23c45903ee56e77753acc70 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 9 Mar 2013 15:31:03 -0300 Subject: [PATCH] raise ChildProcess::LaunchError with the original message to ease debugging when running subprocesses --- lib/vagrant/util/subprocess.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/util/subprocess.rb b/lib/vagrant/util/subprocess.rb index a8bcb5cf9..a9c7fcb4a 100644 --- a/lib/vagrant/util/subprocess.rb +++ b/lib/vagrant/util/subprocess.rb @@ -75,10 +75,10 @@ module Vagrant Dir.chdir(workdir) do process.start end - rescue ChildProcess::LaunchError + rescue ChildProcess::LaunchError => ex # Raise our own version of the error so that users of the class # don't need to be aware of ChildProcess - raise LaunchError + raise LaunchError.new(ex.message) end # Make sure the stdin does not buffer