Skip to content

Commit

Permalink
tune
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 20, 2023
1 parent 90cfad3 commit a40a755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ class AndroidUiautomator2Driver extends BaseDriver {
try {
await this.adb.setHiddenApiPolicy('1', !!this.opts.ignoreHiddenApiPolicyError);
} catch (err) {
this.log.errorAndThrow(`Failed to disable hidden api policy as ${err.message}. You could configure ` +
this.log.errorAndThrow('Failed to disable hidden api policy. You could configure ' +
'the device properly to avoid permission denial error. https://github.com/appium/appium/issues/13802 ' +
'may help to see possible configurations, or ignoreHiddenApiPolicyError capability let you ' +
'ignore the error.');
`ignore the error. Original error: ${err.message}`);
}
}

Expand Down

0 comments on commit a40a755

Please sign in to comment.