From 51749ad81154e80c5781c89d5196708a4a656761 Mon Sep 17 00:00:00 2001 From: kenneth Date: Sat, 17 Jan 2026 01:18:06 +0000 Subject: [PATCH] Include response body in API error messages Co-authored-by: Ona --- packages/aris-data-source-weatherkit/src/weatherkit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/aris-data-source-weatherkit/src/weatherkit.ts b/packages/aris-data-source-weatherkit/src/weatherkit.ts index b09998c..455e465 100644 --- a/packages/aris-data-source-weatherkit/src/weatherkit.ts +++ b/packages/aris-data-source-weatherkit/src/weatherkit.ts @@ -50,7 +50,8 @@ export class DefaultWeatherKitClient implements WeatherKitClient { }) if (!response.ok) { - throw new Error(`WeatherKit API error: ${response.status} ${response.statusText}`) + const body = await response.text() + throw new Error(`WeatherKit API error: ${response.status} ${response.statusText}: ${body}`) } const json = await response.json()