feat: report error with stack

This commit is contained in:
EnixCoda 2019-02-23 19:58:46 +08:00
parent af8630122a
commit e52d34b74f
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -35,6 +35,7 @@ function reportError(error: Error) {
if (!IN_PRODUCTION_MODE) return
return fetch(
`${LOG_ENDPOINT}?${encodeParams({
stack: error.stack,
error: (error && error.message) || error,
path: window.location.href,
version,