Skip to content

Commit 1cf873d

Browse files
committed
Merge branch 'master' of github.com:srdanrasic/JSONCodable
2 parents d25ca35 + 0619a1a commit 1cf873d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JSONCodable/JSONDecodable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public extension Array where Element: JSONDecodable {
6565
init(JSONArray: [AnyObject]) throws {
6666
self.init(try JSONArray.flatMap {
6767
guard let json = $0 as? [String : AnyObject] else {
68-
throw JSONDecodableError.DictionaryTypeExpectedError(key: "[inarray]", elementType: $0.dynamicType)
68+
throw JSONDecodableError.DictionaryTypeExpectedError(key: "n/a", elementType: $0.dynamicType)
6969
}
7070
return try Element(object: json)
7171
})
@@ -277,4 +277,4 @@ public class JSONDecoder {
277277
}
278278
return result
279279
}
280-
}
280+
}

0 commit comments

Comments
 (0)