From 275652416b5d751770cfd6e13af3540229912f1b Mon Sep 17 00:00:00 2001 From: lizifeng Date: Wed, 17 May 2023 19:46:45 +0800 Subject: [PATCH] update --- mymysql/mysql.go | 2 +- myredis/redis.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mymysql/mysql.go b/mymysql/mysql.go index db34c6a..5949ddc 100644 --- a/mymysql/mysql.go +++ b/mymysql/mysql.go @@ -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 } diff --git a/myredis/redis.go b/myredis/redis.go index b53db13..b11f420 100644 --- a/myredis/redis.go +++ b/myredis/redis.go @@ -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 }