Commit 8d13719d authored by Fabio Pelosin's avatar Fabio Pelosin

[Informative] Simplify message handling.

parent e6e4b6ab
...@@ -10,8 +10,7 @@ module Pod ...@@ -10,8 +10,7 @@ module Pod
class Informative < PlainInformative class Informative < PlainInformative
def message def message
# TODO: remove formatting from raise calls and remove conditional "[!] #{super}".red
super !~ /\[!\]/ ? "[!] #{super}".red : super
end end
end end
......
...@@ -60,7 +60,7 @@ module Pod ...@@ -60,7 +60,7 @@ module Pod
def repo_dir def repo_dir
dir = config.repos_dir + @repo dir = config.repos_dir + @repo
raise Informative, "[!] `#{@repo}' repo not found".red unless dir.exist? raise Informative, "`#{@repo}` repo not found" unless dir.exist?
dir dir
end end
......
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