change: error logs for getting window size

This commit is contained in:
lilong.129
2024-09-14 10:26:07 +08:00
parent bfbd4ba6e6
commit 51c17eda77
3 changed files with 5 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ func (ad *adbDriver) getWindowSize() (size Size, err error) {
// adb shell wm size
output, err := ad.adbClient.RunShellCommand("wm", "size")
if err != nil {
return size, errors.Wrap(err, "get window size failed with adb")
return size, errors.Wrap(err, "get window size failed by adb shell")
}
// output may contain both Physical and Override size, use Override if existed