Browse Source

Update deployment status message on error

master
Andrew Kingston 5 years ago
parent
commit
b9cfebdad2
  1. 4
      packages/builder/src/components/deploy/DeployModal.svelte

4
packages/builder/src/components/deploy/DeployModal.svelte

@ -25,10 +25,8 @@
async function deployApp() { async function deployApp() {
try { try {
const response = await api.post("/api/deploy") const response = await api.post("/api/deploy")
const json = await response.json()
if (response.status !== 200) { if (response.status !== 200) {
console.log(json) throw new Error(`status ${response.status}`)
throw new Error()
} else { } else {
notifications.success(`Application published successfully`) notifications.success(`Application published successfully`)
} }

Loading…
Cancel
Save