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,7 +527,9 @@ function attachOnFinishReleaseEvents(
)
.join(EOL + separator + EOL)
logger.error(allWorkflowErrors)
if (allWorkflowErrors) {
logger.error(allWorkflowErrors)
}
}
await onFinish?.(args)