From 36c5301a5aa5c858e27bbcc57aeb5193b8a5d03d Mon Sep 17 00:00:00 2001 From: Bruno Basto Date: Thu, 19 Sep 2024 15:54:02 -0300 Subject: [PATCH] Also outputs command output message when import fails on the `update_primary_domain` step. --- src/lib/site-import/status.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib/site-import/status.ts b/src/lib/site-import/status.ts index 7481c0d94..37e174539 100644 --- a/src/lib/site-import/status.ts +++ b/src/lib/site-import/status.ts @@ -170,6 +170,20 @@ The server said: message += 'Please contact support and include this message along with your sql file.'; } + break; + case 'update_primary_domain': + message += `\nThis error occurred during the update of the primary domain. + +${ rollbackMessage } +`; + if ( importFailed.commandOutput ) { + const commandOutput = ( [] as string[] ).concat( importFailed.commandOutput ).join( ';' ); + message += ` +Please inspect your input file and make the appropriate corrections before trying again. +The server said: +> ${ chalk.red( commandOutput ) } +`; + } break; default: }