Skip to content

Commit

Permalink
fix: tweak updateSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Aug 17, 2023
1 parent 9709dd2 commit 2a9abe6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/commands/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ commands.mobileClickAction = async function mobileClickAction (opts = {}) {

commands.updateSettings = async function updateSettings (settings) {
await this.settings.update(settings);
await this.espresso.jwproxy.command(`/appium/settings`, 'POST', { settings });
try {
await this.espresso.jwproxy.command(`/appium/settings`, 'POST', { settings });

Check failure on line 327 in lib/commands/general.js

View workflow job for this annotation

GitHub Actions / node_test (20)

Trailing spaces not allowed

Check failure on line 327 in lib/commands/general.js

View workflow job for this annotation

GitHub Actions / node_test (20)

Trailing spaces not allowed
} catch (err) {
this.log.warn(`The espresso driver returned an error. ${err.message}`);
};
};

commands.getSettings = async function getSettings () {
Expand Down

0 comments on commit 2a9abe6

Please sign in to comment.