headspinio / appium-tizen-tv-driver

A Samsung Tizen TV driver for Appium
Apache License 2.0
11 stars 2 forks source link

chore: show explanation in the log when 401 occurrs #593

Closed KazuCocoa closed 6 months ago

KazuCocoa commented 6 months ago

Print slightly better error log in https://github.com/headspinio/appium-tizen-tv-driver/pull/592 case:

error example:

The device 123.456.789.10 might be denied in the past pairing. Please make sure the device 123.456.789.10 had no denied devices, especially named '123.456.789.10'.

appium-tizen-tv-driver/node_modules/got/dist/source/as-promise/index.js:118
                    request._beforeError(new types_1.HTTPError(response));
                                         ^
HTTPError: Response code 401 (Unauthorized)
    at Request.<anonymous> (/appium-tizen-tv-driver/node_modules/got/dist/source/as-promise/index.js:118:42)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
✖ Encountered an error when running 'pair-remote': Script "pair-remote" exited with code 1