gcp: output error message when client could not be created

Signed-off-by: Eric Briand <eric.briand@gmail.com>
This commit is contained in:
Eric Briand 2018-10-15 13:37:41 +02:00
parent 0c6a059f71
commit 4fb5ecd066

View File

@ -84,7 +84,7 @@ func runGcp(args []string) {
client, err := NewGCPClient(keys, project)
if err != nil {
log.Fatalf("Unable to connect to GCP")
log.Fatalf("Unable to connect to GCP: %v", err)
}
if err = client.CreateInstance(*name, image, zone, machine, disks, data, *nestedVirt, true); err != nil {