mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 04:22:09 +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) {
|
||||
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();
|
||||
if (!data) {
|
||||
|
||||
Reference in New Issue
Block a user