Mercurial > gemma
comparison client/src/components/fairway/Fairwayprofile.vue @ 4869:6b054b91d9b2
backend not reachable as error message etd. Login adjusted
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 19 Dec 2019 09:35:14 +0100 |
parents | 008bc1ae8897 |
children | 558668c32949 |
comparison
equal
deleted
inserted
replaced
4868:008bc1ae8897 | 4869:6b054b91d9b2 |
---|---|
399 this.templateData = response.data.template_data; | 399 this.templateData = response.data.template_data; |
400 } | 400 } |
401 ); | 401 ); |
402 }) | 402 }) |
403 .catch(error => { | 403 .catch(error => { |
404 let message = "Problems with backend"; | 404 let message = "Backend not reachable"; |
405 if (error.response) { | 405 if (error.response) { |
406 const { status, data } = error.response; | 406 const { status, data } = error.response; |
407 message = `${status}: ${data.message || data}`; | 407 message = `${status}: ${data.message || data}`; |
408 } | 408 } |
409 displayError({ | 409 displayError({ |
834 this.templates[this.templates.length] = this.defaultTemplate; | 834 this.templates[this.templates.length] = this.defaultTemplate; |
835 this.applyChange(); | 835 this.applyChange(); |
836 } | 836 } |
837 }) | 837 }) |
838 .catch(error => { | 838 .catch(error => { |
839 let message = "Problems with backend"; | 839 let message = "Backend not reachable"; |
840 if (error.response) { | 840 if (error.response) { |
841 const { status, data } = error.response; | 841 const { status, data } = error.response; |
842 message = `${status}: ${data.message || data}`; | 842 message = `${status}: ${data.message || data}`; |
843 } | 843 } |
844 displayError({ | 844 displayError({ |