From 260ff5f094e6ec675841f83424c32f48a369839e Mon Sep 17 00:00:00 2001 From: hujambo-dunia <“MSavage07@gsb.columbia.edu”> Date: Wed, 1 Jun 2022 15:07:48 -0400 Subject: [PATCH] remove duplicate error method --- client/src/components/Tour/TourList.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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."; - }, }, };