Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

Commit de6d971

Browse files
authored
Merge pull request #4 from keegho/errorhandler
Updated readme example
2 parents a3ae96e + 469b065 commit de6d971

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ struct Person: Codable {
3030
Now you all you need to do to populate a array of these is call the load method (After importing JSONLoader):
3131

3232
```swift
33-
var people: [Person] = loadFromBundle("people")
33+
do {
34+
var people: [Person] = try loadFromBundle("people")
35+
} catch let err {
36+
//Alert
37+
print(err.localizedDescription)
38+
}
3439
```
3540

3641
# Installation

0 commit comments

Comments
 (0)