reportError in js

This commit is contained in:
Maria Nashchanskaia 2017-09-28 14:06:30 +02:00
parent 09d956e74f
commit a0d55b9f3c

View File

@ -19,4 +19,13 @@ export default {
reportEvent(message, params = null) {
AppMetrica.reportEvent(message, params);
},
/**
* Sends error with reason.
* @param {string} error
* @param {object} reason
*/
reportError(error, reason) {
AppMetrica.reportError(error, reason);
},
};