@@ -676,10 +676,11 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform
676
676
PrepareResponseError dco_decode_prepare_response_error (dynamic raw) {
677
677
// Codec=Dco (DartCObject based), see doc to use other codecs
678
678
final arr = raw as List <dynamic >;
679
- if (arr.length != 1 )
680
- throw Exception ('unexpected arr length: expect 1 but see ${arr .length }' );
679
+ if (arr.length != 2 )
680
+ throw Exception ('unexpected arr length: expect 2 but see ${arr .length }' );
681
681
return PrepareResponseError (
682
682
error: dco_decode_bridging_error (arr[0 ]),
683
+ reason: dco_decode_String (arr[1 ]),
683
684
);
684
685
}
685
686
@@ -1245,7 +1246,8 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform
1245
1246
SseDeserializer deserializer) {
1246
1247
// Codec=Sse (Serialization based), see doc to use other codecs
1247
1248
var var_error = sse_decode_bridging_error (deserializer);
1248
- return PrepareResponseError (error: var_error);
1249
+ var var_reason = sse_decode_String (deserializer);
1250
+ return PrepareResponseError (error: var_error, reason: var_reason);
1249
1251
}
1250
1252
1251
1253
@protected
@@ -1739,6 +1741,7 @@ class YttriumDartApiImpl extends YttriumDartApiImplPlatform
1739
1741
PrepareResponseError self, SseSerializer serializer) {
1740
1742
// Codec=Sse (Serialization based), see doc to use other codecs
1741
1743
sse_encode_bridging_error (self.error, serializer);
1744
+ sse_encode_String (self.reason, serializer);
1742
1745
}
1743
1746
1744
1747
@protected
0 commit comments