raise ChildProcess::LaunchError with the original message to ease debugging when running subprocesses

This commit is contained in:
Fabio Rehm 2013-03-09 15:31:03 -03:00
parent 98a9b47567
commit cc20d2f91e
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