mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: report error with stack
This commit is contained in:
parent
af8630122a
commit
e52d34b74f
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue