Permalink
Browse files

[Object] Improved informative for unknown attributes.

  • Loading branch information...
1 parent 280a500 commit 6c3d04a514b4f3afd1fae9470191cc2ea307b9c1 @fabiopelosin fabiopelosin committed Oct 20, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/xcodeproj/project/object.rb
View
7 lib/xcodeproj/project/object.rb
@@ -197,8 +197,11 @@ def configure_with_plist(objects_by_uuid_plist)
end
object_plist.delete(attrb.plist_name)
end
-
- raise "Xcodeproj doesn't know about the following attributes #{object_plist} for the '#{isa}' isa." unless object_plist.empty?
+ unless object_plist.empty?
+ raise "[!] Xcodeproj doesn't know about the following attributes " \
+ "#{object_plist} for the '#{isa}' isa.\n" \
+ "Please file and issue: https://github.com/CocoaPods/Xcodeproj/issues/new"
+ end
end
# @note the key for simple and to_one attributes usually appears only

0 comments on commit 6c3d04a

Please sign in to comment.