Skip to content

Commit

Permalink
adding sentry reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
habdelra committed May 13, 2024
1 parent 732a73c commit dfa4925
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/host/app/lib/current-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
CardError,
isCardError,
serializableError,
reportSentryError,
type SerializedError,
} from '@cardstack/runtime-common/error';
import { RealmPaths, LocalPath } from '@cardstack/runtime-common/paths';
Expand Down Expand Up @@ -598,7 +599,8 @@ export class CurrentRun {
if (isDbIndexerEnabled()) {
try {
await this.batch.updateEntry(assertURLEndsWithJSON(instanceURL), entry);
} catch (e) {
} catch (e: any) {
reportSentryError(e);
deferred.reject(e);
}
} else {
Expand Down Expand Up @@ -658,7 +660,8 @@ export class CurrentRun {
),
},
});
} catch (e) {
} catch (e: any) {
reportSentryError(e);
deferred.reject(e);
}
}
Expand Down

0 comments on commit dfa4925

Please sign in to comment.