Skip to content

Commit e6760cc

Browse files
committed
forgot one instance of sendErrorEmail
1 parent 1da8082 commit e6760cc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

apps/roam/src/components/canvas/DiscourseRelationShape/DiscourseRelationUtil.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ import getCurrentPageUid from "roamjs-components/dom/getCurrentPageUid";
8080
import getPageTitleByPageUid from "roamjs-components/queries/getPageTitleByPageUid";
8181
import { AddReferencedNodeType } from "./DiscourseRelationTool";
8282
import { dispatchToastEvent } from "~/components/canvas/ToastListener";
83-
import sendErrorEmail from "~/utils/sendErrorEmail";
83+
import internalError from "~/utils/internalError";
8484

8585
const COLOR_ARRAY = Array.from(textShapeProps.color.values)
8686
.filter((c) => !["red", "green", "grey"].includes(c))
@@ -564,12 +564,10 @@ export const createAllRelationShapeUtils = (
564564
relationBlockUid: relation.id,
565565
});
566566
else {
567-
void sendErrorEmail({
568-
error: new Error(
569-
"attempt to create a relation between non discourse nodes",
570-
),
571-
type: "canvas-create-relation-non-dgn",
572-
}).catch(() => undefined);
567+
void internalError({
568+
error: "attempt to create a relation between non discourse nodes",
569+
type: "Canvas create relation",
570+
});
573571
}
574572
} else {
575573
const { triples, label: relationLabel } = relation;

0 commit comments

Comments
 (0)