File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,15 @@ abstract class KuzzleProtocol extends KuzzleEventEmitter {
123123 final syncRes = send (request);
124124 // If we use a synchronous protocol the result is returned directly
125125 if (syncRes != null ) {
126+ syncRes.then ((response) {
127+ if (response.error != null ) {
128+ emit (ProtocolEvents .QUERY_ERROR , [response, request]);
129+ }
130+ }).catchError ((err) {
131+ emit (ProtocolEvents .QUERY_ERROR , [{
132+ 'error' : err,
133+ }, request]);
134+ });
126135 return syncRes;
127136 }
128137 } on Exception catch (error) {
Original file line number Diff line number Diff line change 11name : kuzzle
2- version : 2.3 .0
2+ version : 2.4 .0
33description : A library to interact with kuzzle API. A backend software,
44 self-hostable and ready to use to power modern cross-platform apps.
55homepage : https://github.com/kuzzleio/sdk-dart
You can’t perform that action at this time.
0 commit comments