main
lizifeng 2023-05-17 19:46:45 +08:00
parent 026bba1221
commit 275652416b
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ func Instance(key ...string) *gorm.DB {
instance, ok := instanceMap[key0]
if !ok {
panic(fmt.Errorf("%s not config", key))
panic(fmt.Errorf("mysql %s not config", key0))
}
return instance
}

View File

@ -51,7 +51,7 @@ func Instance(key ...string) *MyRedis {
instance, ok := instanceMap[key0]
if !ok {
panic(fmt.Errorf("%s not config", key))
panic(fmt.Errorf("redis %s not config", key0))
}
return instance
}