mirror of https://github.com/apache/cloudstack.git
autogenview: fix error handling and notification
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
6f7d5f6557
commit
cdd7ee59d2
|
|
@ -684,7 +684,7 @@ export default {
|
|||
console.log(error)
|
||||
this.$notification.error({
|
||||
message: 'Request Failed',
|
||||
description: error.response.headers['x-description']
|
||||
description: (error.response && error.response.headers && error.response.headers['x-description']) || error.message
|
||||
})
|
||||
}).finally(f => {
|
||||
this.closeAction()
|
||||
|
|
|
|||
Loading…
Reference in New Issue