From dcd80ac2c47a8371400917ebb04dcea0ed839f97 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 24 May 2021 14:08:08 +0100 Subject: [PATCH] Update deployment status message to not confuse user --- packages/builder/src/components/deploy/DeployModal.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/deploy/DeployModal.svelte b/packages/builder/src/components/deploy/DeployModal.svelte index 6ea7e44981..caa19a4ed7 100644 --- a/packages/builder/src/components/deploy/DeployModal.svelte +++ b/packages/builder/src/components/deploy/DeployModal.svelte @@ -24,11 +24,13 @@ async function deployApp() { try { - notifications.info(`Deployment started. Please wait.`) const response = await api.post("/api/deploy") const json = await response.json() if (response.status !== 200) { + console.log(json) throw new Error() + } else { + notifications.success(`Application published successfully`) } if (analytics.requestFeedbackOnDeploy()) { @@ -36,7 +38,7 @@ } } catch (err) { analytics.captureException(err) - notifications.error("Deployment unsuccessful. Please try again later.") + notifications.error(`Error publishing app: ${err}`) } }