Skip to content

Commit 6f0840b

Browse files
fethijTewelde, Fethi (F.)
andauthored
Update error handling to capture all 4xx responses (#205)
Co-authored-by: Tewelde, Fethi (F.) <[email protected]>
1 parent fafc018 commit 6f0840b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectors/supabase/src/commonMain/kotlin/com/powersync/connector/supabase/SupabaseConnector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class SupabaseConnector(
9393
supabaseClient.httpClient.httpClient.plugin(HttpSend).intercept { request ->
9494
val resp = execute(request)
9595
val response = resp.response
96-
if (response.status.value == 400) {
96+
if (response.status.value >= 400) {
9797
val responseText = response.bodyAsText()
9898

9999
try {

0 commit comments

Comments
 (0)