Optimize feedback when no tags found

This commit is contained in:
tuexss 2015-03-26 22:30:13 +01:00
parent 93291dde7c
commit d80a6803be

View File

@ -292,12 +292,11 @@ module GitHubChangelogGenerator
tags.concat(page)
end
print " \r"
if @options[:verbose]
puts "Found #{tags.count} tags"
end
if tags.count == 0
puts "Warning: Can't find any tags in repo. Make sure, that you push tags to remote repo via 'git push --tags'".yellow
elsif @options[:verbose]
puts "Found #{tags.count} tags"
end
rescue