Commit a37c3c4c authored by Fabio Pelosin's avatar Fabio Pelosin

Move Command::ErrorReport to UI::ErrorReport.

parent d0344d84
...@@ -7,7 +7,6 @@ module Pod ...@@ -7,7 +7,6 @@ module Pod
end end
class Command < CLAide::Command class Command < CLAide::Command
autoload :ErrorReport, 'cocoapods/command/error_report'
autoload :AdvancedLinter, 'cocoapods/command/advanced_linter' autoload :AdvancedLinter, 'cocoapods/command/advanced_linter'
self.abstract_command = true self.abstract_command = true
...@@ -43,7 +42,7 @@ module Pod ...@@ -43,7 +42,7 @@ module Pod
puts "[!] Cancelled".red puts "[!] Cancelled".red
Config.instance.verbose? ? raise : exit(1) Config.instance.verbose? ? raise : exit(1)
else else
puts ErrorReport.report(error) puts UI::ErrorReport.report(error)
exit 1 exit 1
end end
end end
......
require 'cocoapods/user_interface/error_report'
module Pod module Pod
# Provides support for UI output. It provides support for nexted sections of # Provides support for UI output. It provides support for nexted sections of
......
...@@ -4,7 +4,7 @@ require 'rbconfig' ...@@ -4,7 +4,7 @@ require 'rbconfig'
require 'cgi' require 'cgi'
module Pod module Pod
class Command module UserInterface
module ErrorReport module ErrorReport
class << self class << self
def report(error) def report(error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment