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:
commit
17c2da0a9d
|
@ -75,10 +75,10 @@ module Vagrant
|
||||||
Dir.chdir(workdir) do
|
Dir.chdir(workdir) do
|
||||||
process.start
|
process.start
|
||||||
end
|
end
|
||||||
rescue ChildProcess::LaunchError
|
rescue ChildProcess::LaunchError => ex
|
||||||
# Raise our own version of the error so that users of the class
|
# Raise our own version of the error so that users of the class
|
||||||
# don't need to be aware of ChildProcess
|
# don't need to be aware of ChildProcess
|
||||||
raise LaunchError
|
raise LaunchError.new(ex.message)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make sure the stdin does not buffer
|
# Make sure the stdin does not buffer
|
||||||
|
|
Loading…
Reference in New Issue