🐛 Added error handler
This commit is contained in:
parent
5589c61423
commit
10f6bb9cc6
1 changed files with 10 additions and 1 deletions
|
|
@ -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"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue