diff --git a/client/src/components/Tour/TourList.vue b/client/src/components/Tour/TourList.vue index a09d520772f..4db4b20f499 100644 --- a/client/src/components/Tour/TourList.vue +++ b/client/src/components/Tour/TourList.vue @@ -47,13 +47,12 @@ export default { }, created() { this.root = getAppRoot(); - urlData({ url: `api/tours` }) .then((response) => { this.tours = response; }) .catch((error) => { - this.error = this._errorMessage(error); + this.error = error; }); }, methods: { @@ -70,10 +69,6 @@ export default { (tour.tags && tour.tags.join().toLowerCase().includes(query)) ); }, - _errorMessage(e) { - const message = e && e.response && e.response.data && e.response.data.err_msg; - return message || "Request failed for an unknown reason."; - }, }, };