Browse Source

add more readable hint

pull/25/head
yedf2 5 years ago
parent
commit
d294549761
  1. 2
      dtmsvr/trans.go

2
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))
}
}

Loading…
Cancel
Save