From d77ddfdfb967fabfd73cb68bd8e49438bd05da41 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Wed, 7 Jul 2021 11:25:57 +0300 Subject: [PATCH] refactor: consistent error handling --- src/components/ListOfTipsAndComments.vue | 2 +- src/components/SendComment.vue | 5 ++--- src/components/TipInput.vue | 2 +- src/components/UserInfo.vue | 4 ++-- src/components/tipRecords/TipRecord.vue | 3 ++- src/utils/index.js | 2 +- src/views/TipsAndComments.vue | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/ListOfTipsAndComments.vue b/src/components/ListOfTipsAndComments.vue index 1acedf7bf..429a44d9b 100644 --- a/src/components/ListOfTipsAndComments.vue +++ b/src/components/ListOfTipsAndComments.vue @@ -143,7 +143,7 @@ export default { this.error = false; } catch (error) { this.error = true; - throw error; + console.error(error); } finally { this.showLoading = false; } diff --git a/src/components/SendComment.vue b/src/components/SendComment.vue index 64710f987..e10e1c74d 100644 --- a/src/components/SendComment.vue +++ b/src/components/SendComment.vue @@ -15,7 +15,6 @@