mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
[tests] improve error message when a deploy fails (#7864)
improve error message
This commit is contained in:
@@ -88,7 +88,9 @@ async function nowDeploy(bodies, randomness, uploadNowJson) {
|
||||
const { readyState } = deployment;
|
||||
if (readyState === 'ERROR') {
|
||||
logWithinTest('state is ERROR, throwing');
|
||||
const error = new Error(`State of https://${deploymentUrl} is ERROR`);
|
||||
const error = new Error(
|
||||
`State of https://${deploymentUrl} is ERROR: ${deployment.errorMessage}`
|
||||
);
|
||||
error.deployment = deployment;
|
||||
throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user