Commit 367c539a authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Repo::Push] When validator raises, show the underlying exception message.

Refs https://github.com/CocoaPods/CocoaPods/issues/3108.
parent f7ca94e9
......@@ -86,8 +86,9 @@ module Pod
validator.allow_warnings = @allow_warnings
begin
validator.validate
rescue
raise Informative, "The `#{podspec}` specification does not validate."
rescue => e
raise Informative, "The `#{podspec}` specification does not validate." \
"\n\n#{e.message}\n\n#{e.backtrace * "\n"}"
end
raise Informative, "The `#{podspec}` specification does not validate." unless validator.validated?
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