Skip to content

Commit ee9c212

Browse files
committedJun 20, 2015
Skip release notes on error
1 parent de36859 commit ee9c212

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎lib/appium_thor/helpers.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ def update_release_notes
9494
end
9595

9696
tags = `git tag`.split "\n"
97-
tags.sort! &tag_sort
97+
begin
98+
tags.sort! &tag_sort
99+
rescue
100+
$stderr.puts 'Skipping release notes (unable to sort)'
101+
return
102+
end
98103
pairs = []
99104
tags.each_index { |a| pairs.push tags[a] + '...' + tags[a+1] unless tags[a+1].nil? }
100105

0 commit comments

Comments
 (0)
Please sign in to comment.