We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff6f43 commit 41aed3aCopy full SHA for 41aed3a
Sources/DataConnectError.swift
@@ -217,6 +217,15 @@ public struct DataConnectOperationError: DataConnectError {
217
-> DataConnectOperationError {
218
return DataConnectOperationError(message: message, cause: cause, response: response)
219
}
220
+
221
+ // include the underlying errors from errorInfo list in the description
222
+ public var debugDescription: String {
223
+ let errorInfos = response?.errors.compactMap {
224
+ $0.message
225
+ }.joined(separator: "\n")
226
227
+ return "{\(Self.self), \nerrors: \(errorInfos) \noriginatingError: \(String(describing: underlyingError))}"
228
+ }
229
230
231
/// Contains the data and errors sent to us from the backend in its response.
0 commit comments