File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class Server<InitPayload: Equatable & Codable> {
18
18
var onExit : ( ) -> Void = { }
19
19
var onMessage : ( String ) -> Void = { _ in }
20
20
var onOperationComplete : ( String ) -> Void = { _ in }
21
- var onOperationError : ( String ) -> Void = { _ in }
21
+ var onOperationError : ( String , [ Error ] ) -> Void = { _ , _ in }
22
22
23
23
var initialized = false
24
24
@@ -128,7 +128,7 @@ public class Server<InitPayload: Equatable & Codable> {
128
128
129
129
/// Define the callback to run on error of any full operation (failed query, interrupted subscription)
130
130
/// - Parameter callback: The callback to assign
131
- public func onOperationError( _ callback: @escaping ( String ) -> Void ) {
131
+ public func onOperationError( _ callback: @escaping ( String , [ Error ] ) -> Void ) {
132
132
self . onOperationError = callback
133
133
}
134
134
@@ -283,7 +283,7 @@ public class Server<InitPayload: Equatable & Codable> {
283
283
id: id
284
284
) . toJSON ( encoder)
285
285
)
286
- onOperationError ( id)
286
+ onOperationError ( id, errors )
287
287
}
288
288
289
289
/// Send an `error` response through the messenger
You can’t perform that action at this time.
0 commit comments