diff --git a/web/src/pages/map/editor-modal.vue b/web/src/pages/map/editor-modal.vue index a5bd94e8..a4afc64f 100644 --- a/web/src/pages/map/editor-modal.vue +++ b/web/src/pages/map/editor-modal.vue @@ -137,8 +137,13 @@ export default Vue.extend({ modify: this.edition_stack, }), }) - .then(() => { - this.$emit('saved') + .then((response) => { + if (response.ok) { + this.$emit('saved') + } else { + this.status = 'error' + this.error = `${response.status} ${response.statusText}` + } }) .catch((error) => { this.status = 'error'