This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push: new 5764937 plugins: use `desc` in the error notification description 5764937 is described below commit 5764937e7206ab6d58be7773b4e82dc4e523da11 Author: Rohit Yadav <rohit.ya...@shapeblue.com> AuthorDate: Fri May 8 15:57:51 2020 +0530 plugins: use `desc` in the error notification description Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com> --- src/utils/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/plugins.js b/src/utils/plugins.js index 6711751..1c2d1f8 100644 --- a/src/utils/plugins.js +++ b/src/utils/plugins.js @@ -104,7 +104,7 @@ export const notifierPlugin = { } notification.error({ message: msg, - description: error && error.response && 'x-description' in error.response.headers ? error.response.headers['x-description'] : error.message, + description: desc, duration: 0 }) }