From d294549761304378f70e7d6844324041a2610ff5 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Wed, 18 Aug 2021 19:06:30 +0800 Subject: [PATCH] add more readable hint --- dtmsvr/trans.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtmsvr/trans.go b/dtmsvr/trans.go index d6402b7..7bf0d2a 100644 --- a/dtmsvr/trans.go +++ b/dtmsvr/trans.go @@ -206,7 +206,7 @@ func (t *TransGlobal) execBranch(db *common.DB, branch *TransBranch) { t.touch(db, config.TransCronInterval) branch.changeStatus(db, "failed") } else { - panic(fmt.Errorf("unknown response: %s, will be retried", body)) + panic(fmt.Errorf("http result should contains SUCCESS|FAILURE. grpc error should return nil|Aborted.\nunkown result will be retried: %s", body)) } }