Commit d0e07f55 authored by Sylvain Guillopé's avatar Sylvain Guillopé

[Repo Command] Rescue all StandardError, not just SystemCallError

Don't be discriminatory, extend the scope of rescued exceptions to
StandardError.
parent 5cfa2cb4
......@@ -57,7 +57,7 @@ module Pod
#
def create_repos_dir
config.repos_dir.mkpath
rescue SystemCallError => e
rescue => e
raise Informative, "Could not create '#{config.repos_dir}', the CocoaPods repo cache directory.\n" \
"#{e.class.name}: #{e.message}"
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