From fea4b504d8deaa5448203aae13bdb6ec3e6d33d9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 24 Jan 2019 18:38:56 +0100 Subject: vm/vmimpl: produce better error in WaitForSSH Currently we squash VerboseError which leads to too lengthy build error titles. Handle verbose error more carefully. --- vm/gce/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/gce') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 6f4c9f567..3e18cf8f4 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -169,7 +169,7 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { if outputErr != nil { output = []byte(fmt.Sprintf("failed to get boot output: %v", outputErr)) } - return nil, vmimpl.BootError{Title: err.Error(), Output: output} + return nil, vmimpl.MakeBootError(err, output) } ok = true inst := &instance{ -- cgit mrf-deployment