Skip to content

Commit

Permalink
chore(dev): static fingerprint for error with useNodeValue
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsherma committed Oct 1, 2024
1 parent 876d164 commit 227e6d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions weave-js/src/react.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as Sentry from '@sentry/react';
import {
callOpVeryUnsafe,
Client,
Expand Down Expand Up @@ -354,8 +355,9 @@ export const useNodeValue = <T extends Type>(
const message =
'Node execution failed (useNodeValue): ' + errorToText(error);
// console.error(message);

throw new UseNodeValueServerExecutionError(message);
const err = new UseNodeValueServerExecutionError(message);
Sentry.captureException(err, {fingerprint: ['useNodeValue']});
throw err;
}
if (isConstNode(node)) {
if (isFunction(node.type)) {
Expand Down

0 comments on commit 227e6d6

Please sign in to comment.