From 7544238407c93080de330ca7d746d67624b356de Mon Sep 17 00:00:00 2001 From: Patrick Joyce Date: Fri, 22 Sep 2023 11:41:28 -0400 Subject: [PATCH] check err --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2c1f3be..2aa37e4 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,10 @@ func main() { home := os.Getenv("HOME") profileFileLocation := getenv("AWS_CONFIG_FILE", fmt.Sprintf("%s/.aws/config", home)) profiles := getProfiles(profileFileLocation) - touchFile(fmt.Sprintf("%s/.awsd", home)) + touch, err := touchFile(fmt.Sprintf("%s/.awsd", home)) + if err != nil { + log.Fatal(err) + } fmt.Printf(NoticeColor, "AWS Profile Switcher\n") prompt := promptui.Select{