Commit a4e15873 authored by Eloy Durán's avatar Eloy Durán

[Doc] Make clear that an error occurred in a pre/post hook.

parent 11dca2a8
...@@ -416,8 +416,8 @@ module Pod ...@@ -416,8 +416,8 @@ module Pod
def run_spec_pre_install_hook(spec, lib_representation) def run_spec_pre_install_hook(spec, lib_representation)
spec.pre_install!(pod_rep(spec.root.name), lib_representation) spec.pre_install!(pod_rep(spec.root.name), lib_representation)
rescue => e rescue => e
raise Informative, "The pre install hook of #{spec} is not " \ raise Informative, "An error occurred while processing the pre-install " \
"compatible with this version of CocoaPods." \ "hook of #{spec}." \
"\n\n#{e.message}\n\n#{e.backtrace * "\n"}" "\n\n#{e.message}\n\n#{e.backtrace * "\n"}"
end end
...@@ -430,8 +430,8 @@ module Pod ...@@ -430,8 +430,8 @@ module Pod
def run_podfile_pre_install_hook def run_podfile_pre_install_hook
podfile.pre_install!(installer_rep) podfile.pre_install!(installer_rep)
rescue => e rescue => e
raise Informative, "The pre install hook of the Podfile is not " \ raise Informative, "An error occurred while processing the pre-install " \
"compatible with this version of CocoaPods." \ "hook of the Podfile." \
"\n\n#{e.message}\n\n#{e.backtrace * "\n"}" "\n\n#{e.message}\n\n#{e.backtrace * "\n"}"
end end
...@@ -475,8 +475,8 @@ module Pod ...@@ -475,8 +475,8 @@ module Pod
def run_spec_post_install_hook(spec, lib_representation) def run_spec_post_install_hook(spec, lib_representation)
spec.post_install!(lib_representation) spec.post_install!(lib_representation)
rescue => e rescue => e
raise Informative, "The post install hook of #{spec} is not " \ raise Informative, "An error occurred while processing the post-install " \
"compatible with this version of CocoaPods." \ "hook of #{spec}." \
"\n\n#{e.message}\n\n#{e.backtrace * "\n"}" "\n\n#{e.message}\n\n#{e.backtrace * "\n"}"
end end
...@@ -489,8 +489,8 @@ module Pod ...@@ -489,8 +489,8 @@ module Pod
def run_podfile_post_install_hook def run_podfile_post_install_hook
podfile.post_install!(installer_rep) podfile.post_install!(installer_rep)
rescue => e rescue => e
raise Informative, "The post install hook of the Podfile is not " \ raise Informative, "An error occurred while processing the post-install " \
"compatible with this version of CocoaPods." \ "hook of the Podfile." \
"\n\n#{e.message}\n\n#{e.backtrace * "\n"}" "\n\n#{e.message}\n\n#{e.backtrace * "\n"}"
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