mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 06:31:57 +00:00
remove CodeType
This commit is contained in:
@@ -104,7 +104,7 @@ func (cli *grpcClient) StopForError(err error) {
|
||||
func (cli *grpcClient) Error() error {
|
||||
cli.mtx.Lock()
|
||||
defer cli.mtx.Unlock()
|
||||
return errors.Wrap(cli.err, types.HumanCode(types.CodeType_InternalError))
|
||||
return errors.Wrap(cli.err, "grpc client error")
|
||||
}
|
||||
|
||||
// Set listener for all responses
|
||||
|
||||
@@ -111,7 +111,7 @@ func (cli *socketClient) StopForError(err error) {
|
||||
func (cli *socketClient) Error() error {
|
||||
cli.mtx.Lock()
|
||||
defer cli.mtx.Unlock()
|
||||
return errors.Wrap(cli.err, types.HumanCode(types.CodeType_InternalError))
|
||||
return errors.Wrap(cli.err, "socket client error")
|
||||
}
|
||||
|
||||
// Set listener for all responses
|
||||
|
||||
Reference in New Issue
Block a user