chore: print the original error log in debug mode (#496)

This commit is contained in:
junwen-lee
2025-08-06 10:17:19 +08:00
committed by GitHub
parent 218c1806ff
commit b17db0f32b
5 changed files with 28 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ package consts
import "time"
const (
RunMode = "RUN_MODE"
MySQLDsn = "MYSQL_DSN"
RedisAddr = "REDIS_ADDR"
VeImageXAK = "VE_IMAGEX_AK"

View File

@@ -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",