Skip to content

Commit

Permalink
Catch and log errors thrown in rollbackTagPush() in Git plugin (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyollyollyltd committed Mar 14, 2024
1 parent 91b5d2f commit 88bbaa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/plugin/git/Git.js
Expand Up @@ -215,7 +215,12 @@ class Git extends GitBase {
this.disableRollback();
return push;
} catch (error) {
await this.rollbackTagPush();
try {
await this.rollbackTagPush();
} catch (tagError) {
this.log.warn(`An error was encountered when trying to rollback the tag on the remote: ${tagError.message}`);
}

throw error;
}
}
Expand Down

0 comments on commit 88bbaa9

Please sign in to comment.