From 8708bd5547b50038ba0a909a69efa452f1daa281 Mon Sep 17 00:00:00 2001 From: Randall McPherson Date: Sun, 15 Jun 2014 17:07:37 -0400 Subject: [PATCH] Remove errors dependency. --- auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.go b/auth.go index 6cf0751..f1b301b 100644 --- a/auth.go +++ b/auth.go @@ -2,7 +2,7 @@ package s3gof3r import ( "encoding/json" - "errors" + "fmt" "io/ioutil" "net/http" "os" @@ -83,7 +83,7 @@ func EnvKeys() (keys Keys, err error) { SecretKey: os.Getenv("AWS_SECRET_ACCESS_KEY"), } if keys.AccessKey == "" || keys.SecretKey == "" { - err = errors.New("Keys not set in environment: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY") + err = fmt.Errorf("Keys not set in environment: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY") } return }