diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-09-02 09:19:40 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-09-24 22:02:38 +0300 |
commit | 4be19d5f71e5ab912b9c09a46f356c996e9e0b0b (patch) | |
tree | 0c919ad27fc91f952177a0eda13ba82d6a0c6d6d | |
parent | 39381519f294742e4083dfd6a50c0c8ceddecd5d (diff) |
Merge branch 'ss/fix-sast-failure-on-master-ee' into 'master'
Add argument to catch
See merge request gitlab-org/gitlab-ee!15911
-rw-r--r-- | app/assets/javascripts/behaviors/markdown/render_math.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/markdown/render_math.js b/app/assets/javascripts/behaviors/markdown/render_math.js index 53867b3096b..b5dbdbb7e86 100644 --- a/app/assets/javascripts/behaviors/markdown/render_math.js +++ b/app/assets/javascripts/behaviors/markdown/render_math.js @@ -102,7 +102,7 @@ class SafeMathRenderer { maxSize: 20, maxExpand: 20, }); - } catch { + } catch (e) { // Don't show a flash for now because it would override an existing flash message el.textContent = s__('math|There was an error rendering this math block'); // el.style.color = '#d00'; |