Skip to content

Commit 0619a1a

Browse files
committed
Update JSONDecodable.swift
1 parent df58c58 commit 0619a1a

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
@@ -55,7 +55,7 @@ public extension Array where Element: JSONDecodable {
5555
init(JSONArray: [AnyObject]) throws {
5656
self.init(try JSONArray.flatMap {
5757
guard let json = $0 as? [String : AnyObject] else {
58-
throw JSONDecodableError.DictionaryTypeExpectedError(key: "[inarray]", elementType: $0.dynamicType)
58+
throw JSONDecodableError.DictionaryTypeExpectedError(key: "n/a", elementType: $0.dynamicType)
5959
}
6060
return try Element(JSONDictionary: json)
6161
})
@@ -267,4 +267,4 @@ public class JSONDecoder {
267267
}
268268
return result
269269
}
270-
}
270+
}

0 commit comments

Comments
 (0)