refactor: hrp code

This commit is contained in:
lilong.129
2024-09-12 10:54:02 +08:00
parent 9fc9e8620f
commit 6f6cefe4bc
9 changed files with 61 additions and 73 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ func (c Client) DeviceSerialList() (serials []string, err error) {
func (c Client) DeviceList() (devices []*Device, err error) {
defer func() {
if err != nil && errors.Cause(err) == nil {
err = errors.Wrap(code.AndroidDeviceConnectionError, err.Error())
err = errors.Wrap(code.DeviceConnectionError, err.Error())
}
}()