Skip to content

Commit

Permalink
Sync error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
philly-mac committed Feb 11, 2013
1 parent 4b3afe6 commit 71353f8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/deploy/methods/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ def self.included(base)
starting_branch = `git rev-parse --abbrev-ref HEAD`.strip

unless ENV['TAG_MESSAGE']
puts "No message specified"
raise "No message specified"
message = "No message specified [TAG_MESSAGE]"
puts message
raise message
end

cmd = []
Expand All @@ -71,8 +72,9 @@ def self.included(base)

task :checkout_tag, 'Deploys to the environment using a tag' do
unless ENV['GIT_TAG']
puts "No tag specified"
raise "No tag specified"
message = "No tag specified [GIT_TAG]"
puts message
raise message
end

remote "cd #{dep_config.app_root}"
Expand Down

0 comments on commit 71353f8

Please sign in to comment.