Updating event tracking to reduce noise in reporting

No need to report a "parse error" as an "exception"
This commit is contained in:
Jeff Avallone 2014-12-27 15:54:32 -05:00
parent e19dc6a294
commit eae4959f41

View File

@ -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;
}
})