Skip to content

Commit

Permalink
Address wording feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ariskataoka committed May 8, 2024
1 parent 722ec01 commit 8559352
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/media-import/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Downloading errors details from ${ failureDetailsUrl }...
return ( await response.json() ) as AppEnvironmentMediaImportStatusFailureDetailsFileErrors[];
} catch ( err ) {
progressTracker.suffix += `${ chalk.red(
`Could not download error details\n${ ( err as Error ).message }`
`Could not download file import errors report\n${ ( err as Error ).message }`
) }`;
throw err;
}
Expand All @@ -313,15 +313,15 @@ Downloading errors details from ${ failureDetailsUrl }...
`⚠️ Error details can be found on ${ chalk.bold(
failureDetailsUrl
) } ${ chalk.italic.yellow(
'(file will be stored in the server for 7 days and its unique link expires in 15 minutes)'
'(This link will be valid for the next 15 minutes. The report is retained for 7 days since the import was run.)'
) }. `
) }\n`;
progressTracker.print( { clearAfter: true } );

const failureDetails = await prompt( {
type: 'confirm',
name: 'download',
message: 'Download error details now?',
message: 'Download file import errors report now?',
} );

if ( ! failureDetails.download ) {
Expand All @@ -348,7 +348,7 @@ Downloading errors details from ${ failureDetailsUrl }...
const fileErrors = results.failureDetails?.fileErrors ?? [];
if ( fileErrors.length > 0 ) {
progressTracker.suffix += `${ chalk.yellow(
`⚠️ ${ fileErrors.length } file error(s) have been extracted`
`⚠️ ${ fileErrors.length } file import error(s) were found`
) }`;

if ( ( results.filesTotal ?? 0 ) - ( results.filesProcessed ?? 0 ) !== fileErrors.length ) {
Expand Down

0 comments on commit 8559352

Please sign in to comment.