chore: print the original error log in debug mode (#496)
This commit is contained in:
@@ -19,6 +19,7 @@ package consts
|
||||
import "time"
|
||||
|
||||
const (
|
||||
RunMode = "RUN_MODE"
|
||||
MySQLDsn = "MYSQL_DSN"
|
||||
RedisAddr = "REDIS_ADDR"
|
||||
VeImageXAK = "VE_IMAGEX_AK"
|
||||
|
||||
@@ -33,9 +33,16 @@ const (
|
||||
ErrInterruptDataEmpty = 103100005
|
||||
|
||||
ErrConversationMessageNotFound = 103200001
|
||||
|
||||
ErrAgentRun = 103200002
|
||||
)
|
||||
|
||||
func init() {
|
||||
code.Register(
|
||||
ErrAgentRun,
|
||||
"Interal Server Error",
|
||||
code.WithAffectStability(true),
|
||||
)
|
||||
code.Register(
|
||||
ErrConversationJsonMarshal,
|
||||
"json marshal failed",
|
||||
|
||||
Reference in New Issue
Block a user