mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Throw an error if encoding fails
This commit is contained in:
parent
21c2787f90
commit
c594878cf5
@ -119,7 +119,8 @@ final class FeedWranglerAPICaller: NSObject {
|
||||
]
|
||||
|
||||
guard let url = postData?.urlWithEnhancedPercentEncodedQuery else {
|
||||
fatalError() // something has gone terribly wrong
|
||||
completion(.failure(FeedWranglerError.general(message: "Could not encode name")))
|
||||
return
|
||||
}
|
||||
|
||||
standardSend(url: url, resultType: FeedWranglerSubscriptionsRequest.self) { result in
|
||||
|
Loading…
Reference in New Issue
Block a user