Merge pull request #1407 from fgrehm/launch-error-message

raise ChildProcess::LaunchError with the original message to ease debugging when running subprocesses
This commit is contained in:
Mitchell Hashimoto 2013-03-09 14:07:51 -08:00
commit 17c2da0a9d
1 changed files with 2 additions and 2 deletions

View File

@ -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