Commit f8d3ffb7 authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #5114 from CocoaPods/seg-unknown-config-error

[Installer] List all found configurations when an unknown one is encountered
parents 856045e4 41686d7f
......@@ -8,7 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
* None.
* When an unknown build configuration is mentioned in the Podfile, CocoaPods
will suggest the build configurations found in the user project.
[Samuel Giddins](https://github.com/segiddins)
[CocoaPods#5113](https://github.com/CocoaPods/CocoaPods/issues/5113)
##### Bug Fixes
......
......@@ -249,7 +249,9 @@ module Pod
remainder = whitelisted_configs - all_user_configurations
unless remainder.empty?
raise Informative, "Unknown #{'configuration'.pluralize(remainder.size)} whitelisted: #{remainder.sort.to_sentence}."
raise Informative,
"Unknown #{'configuration'.pluralize(remainder.size)} whitelisted: #{remainder.sort.to_sentence}. " \
"CocoaPods found #{all_user_configurations.sort.to_sentence}, did you mean one of these?"
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