mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Throw an error if encoding fails
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user