run_remote: improve error reporting

Included more info to the error message.
This commit is contained in:
Ed Bartosh 2021-05-20 12:31:18 +03:00
parent 0d9c29078b
commit 89284a1ba7

View File

@ -557,7 +557,7 @@ func testImage(imageConfig *internalGCEImage, junitFilePrefix string) *TestResul
func createInstance(imageConfig *internalGCEImage) (string, error) {
p, err := computeService.Projects.Get(*project).Do()
if err != nil {
return "", fmt.Errorf("failed to get project info %q", *project)
return "", fmt.Errorf("failed to get project info %q: %v", *project, err)
}
// Use default service account
serviceAccount := p.DefaultServiceAccount