From 10f6bb9cc628433aea9c4e220e50a0aceacc8054 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Sun, 22 Dec 2019 15:49:26 +0530 Subject: [PATCH] :bug: Added error handler --- pages/doc.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/doc.vue b/pages/doc.vue index 6a68099b6..c91216409 100644 --- a/pages/doc.vue +++ b/pages/doc.vue @@ -131,7 +131,16 @@ export default { }, getDoc() { - this.items = JSON.parse(this.collectionJSON); + try { + this.items = JSON.parse(this.collectionJSON); + this.$toast.info("Documentation generated", { + icon: "book" + }); + } catch (e) { + this.$toast.error(e, { + icon: "code" + }); + } } } };