aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl/util.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-01-24 18:38:56 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-24 18:56:19 +0100
commitfea4b504d8deaa5448203aae13bdb6ec3e6d33d9 (patch)
treeee8d1a67bd570297bd392eebe4a205260b2829c7 /vm/vmimpl/util.go
parent725ffbccf995a1264766a1e0666a05fcca323959 (diff)
vm/vmimpl: produce better error in WaitForSSH
Currently we squash VerboseError which leads to too lengthy build error titles. Handle verbose error more carefully.
Diffstat (limited to 'vm/vmimpl/util.go')
-rw-r--r--vm/vmimpl/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vmimpl/util.go b/vm/vmimpl/util.go
index 08034450f..616ccb3ac 100644
--- a/vm/vmimpl/util.go
+++ b/vm/vmimpl/util.go
@@ -42,7 +42,7 @@ func WaitForSSH(debug bool, timeout time.Duration, addr, sshKey, sshUser, OS str
return nil
}
if time.Since(startTime) > timeout {
- return fmt.Errorf("can't ssh into the instance: %v", err)
+ return &osutil.VerboseError{"can't ssh into the instance", []byte(err.Error())}
}
}
}