Skip to content

Commit 9f42fa9

Browse files
Merge pull request #8675 from rubygems/deivid-rodriguez/restore-original-branch-if-load-errors-happen-during-release
Restore original branch if LoadError happens during prepare_release task (cherry picked from commit 5101b1a)
1 parent ca72e8d commit 9f42fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/release.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def prepare!
206206
"Cherry-picking change logs from future RubyGems #{@rubygems.version} and Bundler #{@bundler.version} into master."
207207
)
208208
end
209-
rescue StandardError
209+
rescue StandardError, LoadError
210210
system("git", "checkout", initial_branch)
211211
raise
212212
end

0 commit comments

Comments
 (0)