From b9cfebdad20e1b9a091a3e8a790eeb141789876f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 24 May 2021 14:08:55 +0100 Subject: [PATCH] Update deployment status message on error --- packages/builder/src/components/deploy/DeployModal.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/builder/src/components/deploy/DeployModal.svelte b/packages/builder/src/components/deploy/DeployModal.svelte index caa19a4ed7..400f0dca4f 100644 --- a/packages/builder/src/components/deploy/DeployModal.svelte +++ b/packages/builder/src/components/deploy/DeployModal.svelte @@ -25,10 +25,8 @@ async function deployApp() { try { const response = await api.post("/api/deploy") - const json = await response.json() if (response.status !== 200) { - console.log(json) - throw new Error() + throw new Error(`status ${response.status}`) } else { notifications.success(`Application published successfully`) }