From 28b5b610521ef3c386591586e9efd3ee7471a1d8 Mon Sep 17 00:00:00 2001 From: smit95tpatel Date: Tue, 28 Dec 2021 18:37:05 +0530 Subject: [PATCH] added try catch on create and edit downtime --- frontend/src/forms/Downtime.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/forms/Downtime.vue b/frontend/src/forms/Downtime.vue index 1b46d2a1..a23cb788 100644 --- a/frontend/src/forms/Downtime.vue +++ b/frontend/src/forms/Downtime.vue @@ -310,7 +310,7 @@ export default { this.isLoading=false; } catch (error) { this.isLoading=false; - throw new Error('error.message'); + throw new Error(error.message); } this.$router.push('/dashboard/downtimes');