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