Skip to content

Commit 5ba21fc

Browse files
committed
throw bre instead of ktor exception
Signed-off-by: Adam Ratzman <[email protected]>
1 parent d89e403 commit 5ba21fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/http/HttpConnection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public class HttpConnection constructor(
159159
)
160160
throw AuthenticationException(error)
161161
} catch (ignored: ParseException) {
162-
throw e
162+
throw BadRequestException(e)
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)