eval: daemon:spawn now throws any spawning error.

This commit is contained in:
Qi Xiao 2017-12-04 20:13:17 +01:00
parent f953ed9887
commit 8fc4841246

View File

@ -28,5 +28,5 @@ func makeDaemonNamespace(daemon *api.Client) Namespace {
func daemonSpawn(ec *EvalCtx, args []Value, opts map[string]Value) {
TakeNoArg(args)
TakeNoOpt(opts)
ec.ToSpawn.Spawn()
maybeThrow(ec.ToSpawn.Spawn())
}