raise ChildProcess::LaunchError with the original message to ease debugging when running subprocesses
This commit is contained in:
parent
98a9b47567
commit
cc20d2f91e
|
@ -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