Skip to content

Commit

Permalink
update error
Browse files Browse the repository at this point in the history
Co-authored-by: Braydon Kains <[email protected]>
  • Loading branch information
shafinsiddique and braydonk committed Aug 17, 2023
1 parent 6ef5ca5 commit e9fab58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/simulacra/simulacra.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func getConfigFromYaml(configPath string) (*Config, error) {
func parseMetadataImage(name string) (string, string, string, error) {
components := strings.Split(name, "/")
if len(components) < 5 {
return "", "", "", fmt.Errorf("image name from metadata must be of format 'projects/debian-cloud/global/images/debian-11-bullseye-v20230711' ")
return "", "", "", errors.New("image name from metadata must be of format 'projects/debian-cloud/global/images/debian-11-bullseye-v20230711'")
}
imgProject := components[1]
scope := components[2]
Expand Down

0 comments on commit e9fab58

Please sign in to comment.