Skip to content

Commit 9e891ea

Browse files
author
Maxim Lobanov
committed
Update logic to handle errors
1 parent 960b49b commit 9e891ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dist/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,10 +1511,7 @@ class CocoapodsInstaller {
15111511
core.info(`Cocoapods ${versionSpec} has already installed. Not needed to re-install.`);
15121512
return;
15131513
}
1514-
const uninstallExitCode = await exec.exec("gem", ["uninstall", "cocoapods", "--all", "--executables"]).catch(error => error);
1515-
if (uninstallExitCode !== 0) {
1516-
core.info("Error during deleting existing version of cocoapods");
1517-
}
1514+
await exec.exec("gem", ["uninstll", "cocoapods", "--all", "--executables"]);
15181515
const installExitCode = await exec.exec("gem", ["install", "cocoapods", "-v", versionSpec]);
15191516
if (installExitCode !== 0) {
15201517
throw new Error(`Error during install Cocoapods ${versionSpec}`);

0 commit comments

Comments
 (0)