mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[tests] Add log for error response (#4601)
This commit is contained in:
@@ -186,7 +186,10 @@ async function fetchTokenWithRetry(retries = 5) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error(`Unexpected status from registration: ${res.status}`);
|
const text = await res.text();
|
||||||
|
throw new Error(
|
||||||
|
`Unexpected status (${res.status}) from registration: ${text}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user