File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ public struct Bucko {
124124 debugPrint ( response. result. description)
125125 } else {
126126 debugPrint ( response. result. error ?? " Error " )
127+ debugPrint ( response. serverError ?? " Error " )
127128 // Can globably handle errors here if you want
128129 if let urlRequest = response. request, let error = response. result. error {
129130 self . delegate? . buckoRequest ( request: urlRequest, error: error)
@@ -137,3 +138,10 @@ public struct Bucko {
137138 return request
138139 }
139140}
141+
142+ extension DataResponse {
143+ var serverError : JSON ? {
144+ guard let data = self . data else { return nil }
145+ return JSON ( data: data)
146+ }
147+ }
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.1 </string >
18+ <string >1.1.2 </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