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 = {
4848 return callback ( ) ;
4949 } )
5050 . catch ( ( error ) => {
51- reject ( new Error ( error . message ) ) ;
51+ reject ( error ) ;
5252 } ) ;
5353 } , frequency ) ;
5454 } ,
@@ -66,8 +66,7 @@ module.exports = {
6666const throwErrorIfDeploymentFails = ( deployment ) => {
6767 if ( deployment . operation . error && deployment . operation . error . errors . length ) {
6868 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 ;
7170 const errorMessage = [
7271 `Deployment failed: ${ errorCode } \n\n` ,
7372 ` ${ parsedDetails } ` ,
You can’t perform that action at this time.
0 commit comments