File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
apps/roam/src/components/canvas/DiscourseRelationShape Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ import getCurrentPageUid from "roamjs-components/dom/getCurrentPageUid";
8080import getPageTitleByPageUid from "roamjs-components/queries/getPageTitleByPageUid" ;
8181import { AddReferencedNodeType } from "./DiscourseRelationTool" ;
8282import { dispatchToastEvent } from "~/components/canvas/ToastListener" ;
83- import sendErrorEmail from "~/utils/sendErrorEmail " ;
83+ import internalError from "~/utils/internalError " ;
8484
8585const 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 ;
You can’t perform that action at this time.
0 commit comments