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:
parent
f75296e109
commit
c283485110
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user