@dvsa/appdev-api-common 0.10.3-1 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,7 +70,8 @@ class ClientCredentials {
|
|
|
70
70
|
}),
|
|
71
71
|
});
|
|
72
72
|
if (!response.ok) {
|
|
73
|
-
|
|
73
|
+
const errorBody = await response.text();
|
|
74
|
+
console.error("Error fetching client credentials", response.status, errorBody);
|
|
74
75
|
throw new Error("Failed to fetch client credentials");
|
|
75
76
|
}
|
|
76
77
|
return (await response.json());
|