Mercurial > gemma
comparison client/src/components/importconfiguration/types/ApprovedGaugeMeasurement.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 | 84d01a536bec |
comparison
equal
deleted
inserted
replaced
4868:008bc1ae8897 | 4869:6b054b91d9b2 |
---|---|
140 ) | 140 ) |
141 }); | 141 }); |
142 this.back(); | 142 this.back(); |
143 }) | 143 }) |
144 .catch(error => { | 144 .catch(error => { |
145 let message = "Problems with backend"; | 145 let message = "Backend not reachable"; |
146 if (error.response) { | 146 if (error.response) { |
147 const { status, data } = error.response; | 147 const { status, data } = error.response; |
148 message = `${status}: ${data.message || data}`; | 148 message = `${status}: ${data.message || data}`; |
149 } | 149 } |
150 displayError({ | 150 displayError({ |