diff options
author | kushalpandya <kushal@gitlab.com> | 2017-04-13 13:31:11 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-04-13 13:31:11 +0530 |
commit | f154c81cb2c60a147172aca37feab7b13e799095 (patch) | |
tree | 07232937c6e2ca7ba0f2f6c5bc3dbc7b8cb1d9b4 | |
parent | f8044568d0b8eb1165be6bd9ffc60df9674fa739 (diff) | |
download | gitlab-ce-27486-fix-eslint-promises.tar.gz |
Update thrown error message27486-fix-eslint-promises
-rw-r--r-- | app/assets/javascripts/awards_handler.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/awards_handler.js b/app/assets/javascripts/awards_handler.js index 92e43a53b66..653028ad6e8 100644 --- a/app/assets/javascripts/awards_handler.js +++ b/app/assets/javascripts/awards_handler.js @@ -231,9 +231,9 @@ AwardsHandler if (menu) { menu.dispatchEvent(new CustomEvent('build-emoji-menu-finish')); } - }).catch(() => { + }).catch((err) => { emojiContentElement.insertAdjacentHTML('beforeend', '<p>We encountered an error while adding the remaining categories</p>'); - throw new Error('Error occurred while adding the remaining categories.'); + throw new Error(`Error occurred in addRemainingEmojiMenuCategories: ${err.message}`); }); }; |