File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ module.exports = {
48
48
return callback ( ) ;
49
49
} )
50
50
. catch ( ( error ) => {
51
- reject ( new Error ( error . message ) ) ;
51
+ reject ( error ) ;
52
52
} ) ;
53
53
} , frequency ) ;
54
54
} ,
@@ -66,8 +66,7 @@ module.exports = {
66
66
const throwErrorIfDeploymentFails = ( deployment ) => {
67
67
if ( deployment . operation . error && deployment . operation . error . errors . length ) {
68
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 ) ;
69
+ const parsedDetails = deployment . operation . error . errors [ 0 ] . message ;
71
70
const errorMessage = [
72
71
`Deployment failed: ${ errorCode } \n\n` ,
73
72
` ${ parsedDetails } ` ,
You can’t perform that action at this time.
0 commit comments