Mercurial > gemma
comparison client/src/components/systemconfiguration/PDFTemplates.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 | 7768f14f6535 |
comparison
equal
deleted
inserted
replaced
4868:008bc1ae8897 | 4869:6b054b91d9b2 |
---|---|
161 ) | 161 ) |
162 ); | 162 ); |
163 element.click(); | 163 element.click(); |
164 }) | 164 }) |
165 .catch(error => { | 165 .catch(error => { |
166 let message = "Problems with backend"; | 166 let message = "Backend not reachable"; |
167 if (error.response) { | 167 if (error.response) { |
168 const { status, data } = error.response; | 168 const { status, data } = error.response; |
169 message = `${status}: ${data.message || data}`; | 169 message = `${status}: ${data.message || data}`; |
170 } | 170 } |
171 displayError({ | 171 displayError({ |
290 }) | 290 }) |
291 .then(response => { | 291 .then(response => { |
292 this.templates = response.data; | 292 this.templates = response.data; |
293 }) | 293 }) |
294 .catch(error => { | 294 .catch(error => { |
295 let message = "Problems with backend"; | 295 let message = "Backend not reachable"; |
296 if (error.response) { | 296 if (error.response) { |
297 const { status, data } = error.response; | 297 const { status, data } = error.response; |
298 message = `${status}: ${data.message || data}`; | 298 message = `${status}: ${data.message || data}`; |
299 } | 299 } |
300 displayError({ | 300 displayError({ |