Throw full error

This commit is contained in:
Adria Navarro 2025-05-09 10:25:07 +02:00
parent 9eaa9bed13
commit 4a7ad25830
1 changed files with 2 additions and 4 deletions

View File

@ -207,10 +207,8 @@ export const publishApp = async function (
} catch (err: any) {
deployment.setStatus(DeploymentStatus.FAILURE, err.message)
await storeDeploymentHistory(deployment)
throw {
...err,
message: `Deployment Failed: ${err.message}`,
}
throw new Error(`Deployment Failed: ${err.message}`, { cause: err })
} finally {
if (replication) {
await replication.close()