From eae4959f41461032530aaffebfce4590f16034ba Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sat, 27 Dec 2014 15:54:32 -0500 Subject: [PATCH] Updating event tracking to reduce noise in reporting No need to report a "parse error" as an "exception" --- src/js/regexper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/regexper.js b/src/js/regexper.js index 9b4cdc6..a000834 100644 --- a/src/js/regexper.js +++ b/src/js/regexper.js @@ -154,7 +154,7 @@ export default class Regexper { this.error.innerHTML = ''; this.error.appendChild(document.createTextNode(message)); - this._trackEvent('visualization', 'parse error'); + message.parseError = true; throw message; }) @@ -170,7 +170,7 @@ export default class Regexper { this._trackEvent('visualization', 'cancelled'); this.state = ''; } else { - this._trackEvent('visualization', 'exception'); + this._trackEvent('visualization', (message.parseError ? 'parse error' : 'exception')); throw message; } })