added try catch on create and edit downtime

pull/1097/head
smit95tpatel 2021-12-28 18:37:05 +05:30
parent 1b4966c533
commit 28b5b61052
1 changed files with 1 additions and 1 deletions

View File

@ -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');