We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e45ec2d + a56adbe commit 0a0d7c9Copy full SHA for 0a0d7c9
1 file changed
shared/monitorDeployment.js
@@ -48,7 +48,7 @@ module.exports = {
48
return callback();
49
})
50
.catch((error) => {
51
- reject(new Error(error.message));
+ reject(error);
52
});
53
}, frequency);
54
},
@@ -66,8 +66,7 @@ module.exports = {
66
const throwErrorIfDeploymentFails = (deployment) => {
67
if (deployment.operation.error && deployment.operation.error.errors.length) {
68
const errorCode = deployment.operation.error.errors[0].code;
69
- const parsedMessage = JSON.parse(deployment.operation.error.errors[0].message);
70
- const parsedDetails = JSON.stringify(parsedMessage);
+ const parsedDetails = deployment.operation.error.errors[0].message;
71
const errorMessage = [
72
`Deployment failed: ${errorCode}\n\n`,
73
` ${parsedDetails}`,
0 commit comments