diff --git a/cmd/list.go b/cmd/list.go index 92edeb654..a88366277 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -80,7 +80,7 @@ func ResponseLogAndError(v interface{}) { e, isErr := v.(error) _, isRuntimeErr := e.(runtime.Error) if isErr && !isRuntimeErr { - logrus.Errorf(fmt.Sprint(e)) + logrus.Errorf("%v", e) fmt.Println(fmt.Sprint(e)) } else { logrus.Errorf("Caught FATAL error: %s", v) diff --git a/s3/s3_service.go b/s3/s3_service.go index e5aa7366b..761d4e272 100644 --- a/s3/s3_service.go +++ b/s3/s3_service.go @@ -91,7 +91,7 @@ func parseAwsError(err error) error { if reqErr, ok := err.(awserr.RequestFailure); ok { message += fmt.Sprintln(reqErr.StatusCode(), reqErr.RequestID()) } - return fmt.Errorf(message) + return fmt.Errorf("%s", message) } return err }