deliver/lib/deliver/options.rb in fastlane-2.20.0.beta.20170308010036 vs deliver/lib/deliver/options.rb in fastlane-2.20.0.beta.20170309010049

- old
+ new

@@ -188,18 +188,18 @@ description: "Metadata: The path to the app icon", optional: true, short_option: "-l", verify_block: proc do |value| UI.user_error!("Could not find png file at path '#{File.expand_path(value)}'") unless File.exist?(value) - UI.user_error!("'#{value}' doesn't seem to be a png file") unless value.end_with?(".png") + UI.user_error!("'#{value}' doesn't seem to be one of the supported files. supported: #{Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.join(',')}") unless Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.include?(File.extname(value).downcase) end), FastlaneCore::ConfigItem.new(key: :apple_watch_app_icon, description: "Metadata: The path to the Apple Watch app icon", optional: true, short_option: "-q", verify_block: proc do |value| UI.user_error!("Could not find png file at path '#{File.expand_path(value)}'") unless File.exist?(value) - UI.user_error!("'#{value}' doesn't seem to be a png file") unless value.end_with?(".png") + UI.user_error!("'#{value}' doesn't seem to be one of the supported files. supported: #{Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.join(',')}") unless Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.include?(File.extname(value).downcase) end), FastlaneCore::ConfigItem.new(key: :copyright, description: "Metadata: The copyright notice", optional: true, is_string: true),