1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix hbase error not exist.

This commit is contained in:
shunza 2019-07-20 20:05:26 +08:00
parent f75296e109
commit c283485110

View File

@ -37,12 +37,12 @@ func codeFromErr(err error) string {
switch err {
case gohbase.ErrClientClosed:
code = "client_closed"
case gohbase.ErrConnotFindRegion:
case gohbase.ErrCannotFindRegion:
code = "connot_find_region"
case gohbase.TableNotFound:
code = "table_not_found"
case gohbase.ErrRegionUnavailable:
code = "region_unavailable"
//case gohbase.ErrRegionUnavailable:
// code = "region_unavailable"
}
return code
}