Skip to content

Commit c9dcbd0

Browse files
cleanup
1 parent 2e855f2 commit c9dcbd0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

packages/app/src/cli/services/bulk-operations/execute-bulk-operation.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,14 @@ export async function executeBulkOperation(input: ExecuteBulkOperationInput): Pr
8181
await renderBulkOperationResult(finishedOperation, outputFile)
8282
} catch (error) {
8383
if (error instanceof Error && error.name === 'AbortError') {
84-
await renderBulkOperationResult(createdOperation, outputFile)
84+
renderSuccess({
85+
headline: `Bulk operation ${createdOperation.id} is still running in the background.`,
86+
body: [
87+
outputContent`Monitor its progress with:\n${outputToken.cyan(
88+
`shopify app bulk status --id="${createdOperation.id}"`,
89+
)}`.value,
90+
],
91+
})
8592
return
8693
}
8794
throw error
@@ -116,8 +123,9 @@ async function renderBulkOperationResult(operation: BulkOperation, outputFile?:
116123
renderSuccess({
117124
headline: 'Bulk operation started.',
118125
body: [
119-
outputContent`Monitor its progress with: ${outputToken.cyan(`shopify app bulk status --id=${operation.id}`)}`
120-
.value,
126+
outputContent`Monitor its progress with:\n${outputToken.cyan(
127+
`shopify app bulk status --id="${operation.id}"`,
128+
)}`.value,
121129
],
122130
customSections,
123131
})

0 commit comments

Comments
 (0)