Commit 26c3cce6 authored by Sylvain Guillopé's avatar Sylvain Guillopé Committed by Sylvain Guillopé

[Repo Command] Add name of the original exception to Informative message

It could be helpful to have more details on the original exception for
troubleshoot purposes.
parent 4f8e26b6
......@@ -58,7 +58,7 @@ module Pod
def create_repos_dir
config.repos_dir.mkpath
rescue SystemCallError => e
raise Informative, "Could not create repos directory '#{config.repos_dir}'\n#{e.message}"
raise Informative, "Could not create repos directory '#{config.repos_dir}'.\n#{e.class.name}: #{e.message}"
end
# Clones the git spec-repo according to parameters passed to the
......
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