From a40a75532a0ecf920aa613b2972e5c2b7359283a Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Wed, 20 Sep 2023 00:30:59 -0700 Subject: [PATCH] tune --- lib/driver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/driver.js b/lib/driver.js index e5a3e0ca8..f16c38db5 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -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}`); } }