diff options
author | sstern <sstern@gitlab.com> | 2019-08-31 01:57:49 +0300 |
---|---|---|
committer | sstern <sstern@gitlab.com> | 2019-08-31 01:57:49 +0300 |
commit | 5f3a597096b9c23fa84d278ccb78e554a67f6ec6 (patch) | |
tree | 6e78e2495b2093be57ff70cc96ee6b3774777139 /app/assets | |
parent | 88c6423e4a45103cc480467bc8f412a48e1e0b55 (diff) |
Add argument to catch
Diffstat (limited to 'app/assets')
-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'; |