File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Exceptionless } from "@exceptionless/browser" ;
2
+ import { toError } from "@exceptionless/core" ;
2
3
3
4
Exceptionless . startup ( c => {
4
5
c . apiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" ;
@@ -11,5 +12,5 @@ Exceptionless.startup(c => {
11
12
/** @type {import('@sveltejs/kit').HandleClientError } */
12
13
export async function handleError ( { error, event } ) {
13
14
console . log ( 'client error handler' ) ;
14
- await Exceptionless . submitException ( error ) ;
15
+ await Exceptionless . submitException ( toError ( error ) ) ;
15
16
}
Original file line number Diff line number Diff line change
1
+ import { toError } from "@exceptionless/core" ;
1
2
import { Exceptionless } from "@exceptionless/node" ;
2
3
3
4
Exceptionless . startup ( c => {
@@ -11,5 +12,5 @@ Exceptionless.startup(c => {
11
12
/** @type {import('@sveltejs/kit').HandleServerError } */
12
13
export async function handleError ( { error, event } ) {
13
14
console . log ( 'server error handler' ) ;
14
- await Exceptionless . submitException ( error ) ;
15
+ await Exceptionless . submitException ( toError ( error ) ) ;
15
16
}
You can’t perform that action at this time.
0 commit comments