mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 03:12:19 +08:00
fix: add return err
This commit is contained in:
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…
x
Reference in New Issue
Block a user