This commit is contained in:
Martin McKeaveney 2021-09-21 20:47:04 +01:00
parent b7ff1a2464
commit 45981c62ef
2 changed files with 10 additions and 10 deletions

View File

@ -13,20 +13,20 @@ export default class SentryClient {
} }
} }
/** /**
* Capture an exception and send it to sentry. * Capture an exception and send it to sentry.
* @param {Error} err - JS error object * @param {Error} err - JS error object
*/ */
captureException(err) { captureException(err) {
if (!this.initalised) return if (!this.initalised) return
Sentry.captureException(err) Sentry.captureException(err)
} }
/** /**
* Identify user in sentry. * Identify user in sentry.
* @param {String} id - Unique user id * @param {String} id - Unique user id
*/ */
identify(id) { identify(id) {
if (!this.initalised) return if (!this.initalised) return