fix: Workflow always print "error:" even if there are none (#8978)

Fix issue [https://github.com/medusajs/medusa/issues/8976](https://github.com/medusajs/medusa/issues/8976)
This commit is contained in:
matteoxplo
2024-09-04 12:17:25 +00:00
committed by GitHub
parent af4f8811bd
commit 91f17fb176
@@ -527,8 +527,10 @@ function attachOnFinishReleaseEvents(
) )
.join(EOL + separator + EOL) .join(EOL + separator + EOL)
if (allWorkflowErrors) {
logger.error(allWorkflowErrors) logger.error(allWorkflowErrors)
} }
}
await onFinish?.(args) await onFinish?.(args)