add more readable hint

This commit is contained in:
yedf2 2021-08-18 19:06:30 +08:00
parent fa98442a7b
commit d294549761

View File

@ -206,7 +206,7 @@ func (t *TransGlobal) execBranch(db *common.DB, branch *TransBranch) {
t.touch(db, config.TransCronInterval) t.touch(db, config.TransCronInterval)
branch.changeStatus(db, "failed") branch.changeStatus(db, "failed")
} else { } 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))
} }
} }