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 5aa9919 commit fee225cCopy full SHA for fee225c
packages/powersync_core/lib/src/exceptions.dart
@@ -58,6 +58,11 @@ class SyncResponseException implements Exception {
58
final details = _stringOrFirst(decoded['error']?['details']) ?? body;
59
final message = '${response.reasonPhrase ?? "Request failed"}: $details';
60
return SyncResponseException(response.statusCode, message);
61
+ } on FormatException catch (_) {
62
+ return SyncResponseException(
63
+ response.statusCode,
64
+ response.reasonPhrase ?? "Request failed",
65
+ );
66
} on Error catch (_) {
67
return SyncResponseException(
68
response.statusCode,
0 commit comments