mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
feat: 优化driver层错误码返回
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ func (dev *IOSDevice) NewDriver() (driver IDriver, err error) {
|
||||
if dev.Options.ResetHomeOnStartup {
|
||||
log.Info().Msg("go back to home screen")
|
||||
if err = wdaDriver.Home(); err != nil {
|
||||
return nil, errors.Wrap(code.MobileUIDriverError,
|
||||
return nil, errors.Wrap(code.DeviceHTTPDriverError,
|
||||
fmt.Sprintf("go back to home screen failed: %v", err))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user