From e9fab58155b825bb2102f8533878c6f0baae71fe Mon Sep 17 00:00:00 2001 From: Shafin Siddique <41314351+shafinsiddique@users.noreply.github.com> Date: Thu, 17 Aug 2023 11:15:27 -0400 Subject: [PATCH] update error Co-authored-by: Braydon Kains <93549768+braydonk@users.noreply.github.com> --- cmd/simulacra/simulacra.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/simulacra/simulacra.go b/cmd/simulacra/simulacra.go index 37e605cef8..5037e602a9 100644 --- a/cmd/simulacra/simulacra.go +++ b/cmd/simulacra/simulacra.go @@ -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]