mirror of
https://github.com/ViViDboarder/abuse-the-force.git
synced 2024-12-04 08:36:54 +00:00
Improve error messages
This commit is contained in:
parent
53bbf5ab20
commit
3820d1ecd9
@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
||||
|
||||
s.add_dependency 'thor', '~> 0.16.0'
|
||||
s.add_dependency 'listen', '~> 0.6.0'
|
||||
s.add_dependency 'metaforce', '~> 1.0.7'
|
||||
s.add_dependency 'metaforce', '>= 1.0.7'
|
||||
s.add_dependency 'highline'
|
||||
|
||||
s.add_development_dependency 'rake'
|
||||
|
@ -182,6 +182,7 @@ module AbuseTheForce
|
||||
# If a failed deploy, print errors
|
||||
if result.success == false
|
||||
|
||||
if result.messages.any?
|
||||
puts "DEPLOY ERRORS: #{result.messages.reject { |m| m.success }.size}"
|
||||
|
||||
result.messages.each do |m|
|
||||
@ -196,6 +197,9 @@ module AbuseTheForce
|
||||
puts "#{m.file_name}:#{m.line_number}:#{m.column_number} #{m.problem_type} in #{m.full_name} #{m.problem}"
|
||||
end
|
||||
end
|
||||
else
|
||||
puts "DEPLOY ERRORS: UKNOWN"
|
||||
end
|
||||
end # success == false
|
||||
|
||||
if Atf_Config.notify == nil
|
||||
|
Loading…
Reference in New Issue
Block a user