comparison client/src/components/Logs.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
156 this.currentLog = type; 156 this.currentLog = type;
157 this.refreshed = new Date().toLocaleString(); 157 this.refreshed = new Date().toLocaleString();
158 this.currentFile = file; 158 this.currentFile = file;
159 }) 159 })
160 .catch(error => { 160 .catch(error => {
161 let message = "Problems with backend"; 161 let message = "Backend not reachable";
162 if (error.response) { 162 if (error.response) {
163 const { status, data } = error.response; 163 const { status, data } = error.response;
164 message = `${status}: ${data.message || data}`; 164 message = `${status}: ${data.message || data}`;
165 } 165 }
166 displayError({ 166 displayError({