Created
December 15, 2015 21:31
-
-
Save wjimenez5271/bdd9704e0a4187fac4e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 resp, err := client.CreateImage(create_image_opts) | |
22 es, ok := err.(ec2.Error) | |
23 if ok { | |
24 log.Print(fmt.Sprintf(es.Code)) | |
25 } else { | |
26 log.Print(fmt.Sprintf("No value for response Code")) | |
27 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment