From 5f3a597096b9c23fa84d278ccb78e554a67f6ec6 Mon Sep 17 00:00:00 2001 From: sstern Date: Fri, 30 Aug 2019 15:57:49 -0700 Subject: Add argument to catch --- app/assets/javascripts/behaviors/markdown/render_math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets') 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'; -- cgit v1.2.1