File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public struct Bucko {
108108 if let response.result.isSuccess {
109109 let json = JSON(response.result.value!)
110110 } else {
111- // Handle error
111+ let error = JSON(data: response.data)
112112 }
113113 ```
114114
@@ -118,7 +118,7 @@ public struct Bucko {
118118 */
119119 @discardableResult
120120 public func request( endpoint: Endpoint , completion: @escaping BuckoResponseClosure ) -> DataRequest {
121- let request = self . request ( endpoint: endpoint) . responseJSON { response in
121+ let request = self . request ( endpoint: endpoint) . validate ( ) . responseJSON { response in
122122
123123 if response. result. isSuccess {
124124 debugPrint ( response. result. description)
Original file line number Diff line number Diff line change 1515 <key >CFBundlePackageType </key >
1616 <string >FMWK </string >
1717 <key >CFBundleShortVersionString </key >
18- <string >1.1.0 </string >
18+ <string >1.1.1 </string >
1919 <key >CFBundleVersion </key >
2020 <string >$(CURRENT_PROJECT_VERSION) </string >
2121 <key >NSPrincipalClass </key >
You can’t perform that action at this time.
0 commit comments