Browse files

Working deployment error messages

  • Loading branch information...
1 parent 3fae9c6 commit b3670b87b26fad6d6555f870eec5ae7e962db8fa Antti Pitkanen committed Feb 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/flowdock/capistrano.rb
View
8 lib/flowdock/capistrano.rb
@@ -15,7 +15,7 @@
begin
run "echo '#{source.head}' > #{current_path}/BRANCH"
rescue => e
- puts "Flowdock: error in saving deployed branch information: " + e
+ puts "Flowdock: error in saving deployed branch information: #{e.to_s}"
end
end
@@ -25,15 +25,15 @@
set :repo, Grit::Repo.new(".")
config = Grit::Config.new(repo)
rescue => e
- puts "Flowdock: error in fetching your git repository information: " + e
+ puts "Flowdock: error in fetching your git repository information: #{e.to_s}"
end
begin
set :flowdock_api, Flowdock::Flow.new(:api_token => flowdock_api_token,
:source => "Capistrano deployment", :project => flowdock_project_name,
:from => {:name => config["user.name"], :address => config["user.email"]})
rescue => e
- puts "Flowdock: error in configuring Flowdock API: " + e
+ puts "Flowdock: error in configuring Flowdock API: #{e.to_s}"
end
end
@@ -45,7 +45,7 @@
:content => notification_message,
:tags => ["deploy", "#{rails_env}"] | flowdock_deploy_tags)
rescue => e
- puts "Flowdock: error in sending notification to your flow: " + e
+ puts "Flowdock: error in sending notification to your flow: #{e.to_s}"
end
end

0 comments on commit b3670b8

Please sign in to comment.