mirror of
https://github.com/apache/cloudstack
synced 2026-09-04 16:34:34 +00:00
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
Block a user