Skip to content

Commit 205ef7c

Browse files
committed
Add ability to associate description value for ServerAPIError.emptyData
1 parent 3f27623 commit 205ef7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecturePattern/ServerAPIError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public enum ServerAPIError: Error {
1111
/// The API request is bad.
1212
case badRequest(description: String? = nil, error: Error? = nil)
1313
/// The API unexpectedly returned empty data.
14-
case emptyData
14+
case emptyData(description: String? = nil)
1515
/// The wrong data returned in response.
1616
case incorrectReponseData(description: String? = nil)
1717
case local(description: String? = nil, error: Error?)

0 commit comments

Comments
 (0)