Updating event tracking to reduce noise in reporting
No need to report a "parse error" as an "exception"
This commit is contained in:
parent
e19dc6a294
commit
eae4959f41
@ -154,7 +154,7 @@ export default class Regexper {
|
|||||||
this.error.innerHTML = '';
|
this.error.innerHTML = '';
|
||||||
this.error.appendChild(document.createTextNode(message));
|
this.error.appendChild(document.createTextNode(message));
|
||||||
|
|
||||||
this._trackEvent('visualization', 'parse error');
|
message.parseError = true;
|
||||||
|
|
||||||
throw message;
|
throw message;
|
||||||
})
|
})
|
||||||
@ -170,7 +170,7 @@ export default class Regexper {
|
|||||||
this._trackEvent('visualization', 'cancelled');
|
this._trackEvent('visualization', 'cancelled');
|
||||||
this.state = '';
|
this.state = '';
|
||||||
} else {
|
} else {
|
||||||
this._trackEvent('visualization', 'exception');
|
this._trackEvent('visualization', (message.parseError ? 'parse error' : 'exception'));
|
||||||
throw message;
|
throw message;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user