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

[Informative] Simplify message handling.

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