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 11import { Exceptionless } from "@exceptionless/browser" ;
2+ import { toError } from "@exceptionless/core" ;
23
34Exceptionless . startup ( c => {
45 c . apiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" ;
@@ -11,5 +12,5 @@ Exceptionless.startup(c => {
1112/** @type {import('@sveltejs/kit').HandleClientError } */
1213export async function handleError ( { error, event } ) {
1314 console . log ( 'client error handler' ) ;
14- await Exceptionless . submitException ( error ) ;
15+ await Exceptionless . submitException ( toError ( error ) ) ;
1516}
Original file line number Diff line number Diff line change 1+ import { toError } from "@exceptionless/core" ;
12import { Exceptionless } from "@exceptionless/node" ;
23
34Exceptionless . startup ( c => {
@@ -11,5 +12,5 @@ Exceptionless.startup(c => {
1112/** @type {import('@sveltejs/kit').HandleServerError } */
1213export async function handleError ( { error, event } ) {
1314 console . log ( 'server error handler' ) ;
14- await Exceptionless . submitException ( error ) ;
15+ await Exceptionless . submitException ( toError ( error ) ) ;
1516}
You can’t perform that action at this time.
0 commit comments