Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaDiachenko committed Nov 3, 2024
1 parent 61b9dd9 commit 5f15c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-android/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const runAndroid = async (device: AndroidDevice) => {
try {
await execCLI(CLI_ANDROID_ADB, `uninstall ${packageId}`, { silent: true });
} catch (e) {
logWarning(`Failed to uninstall ${packageId}`);
return Promise.reject(`Failed to uninstall ${packageId}`);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-react-native/src/androidRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const runReactNativeAndroid = async (device: { udid?: string } | undefine
try {
await execCLI('androidAdb', `uninstall ${packageId}`, { silent: true });
} catch (e) {
logWarning(`Failed to uninstall ${packageId}`);
return Promise.reject(`Failed to uninstall ${packageId}`);
}

return await executeCommand();
Expand Down

0 comments on commit 5f15c31

Please sign in to comment.