fix: add return err

pull/2001/head
luhaoling 2 years ago
parent ddac6fe7c7
commit ba5c4221eb

@ -56,7 +56,10 @@ const (
func NewAWS() (s3.Interface, error) {
configGlobal := config.NewGlobalConfig()
config.InitConfig(configGlobal, "../../config")
err := config.InitConfig(configGlobal, "../../config")
if err != nil {
return nil, err
}
conf := configGlobal.Object.Aws
credential := credentials.NewStaticCredentials(

Loading…
Cancel
Save