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 authored and GitHub committed 2024-09-04 12:17:25 +00:00
1 parent af4f8811bd
commit 91f17fb176
1 file changed
+2
@@ -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)