diff --git a/src/create/CreateGuesser.tsx b/src/create/CreateGuesser.tsx index 8222ee24..1515b03e 100644 --- a/src/create/CreateGuesser.tsx +++ b/src/create/CreateGuesser.tsx @@ -102,7 +102,7 @@ export const IntrospectedCreateGuesser = ({ const CreateGuesser = (props: CreateGuesserProps) => { const resource = useResourceContext(props); if (!resource) { - throw new Error('guesser must be used with a resource'); + throw new Error('CreateGuesser must be used with a resource'); } return ( diff --git a/src/edit/EditGuesser.tsx b/src/edit/EditGuesser.tsx index d71ec67b..6602a207 100644 --- a/src/edit/EditGuesser.tsx +++ b/src/edit/EditGuesser.tsx @@ -114,7 +114,7 @@ export const IntrospectedEditGuesser = ({ const EditGuesser = (props: EditGuesserProps) => { const resource = useResourceContext(props); if (!resource) { - throw new Error('guesser must be used with a resource'); + throw new Error('EditGuesser must be used with a resource'); } return ( diff --git a/src/field/FieldGuesser.tsx b/src/field/FieldGuesser.tsx index 294c8994..194de03a 100644 --- a/src/field/FieldGuesser.tsx +++ b/src/field/FieldGuesser.tsx @@ -163,7 +163,7 @@ export const IntrospectedFieldGuesser = ({ const FieldGuesser = (props: FieldGuesserProps) => { const resource = useResourceContext(props); if (!resource) { - throw new Error('guesser must be used with a resource'); + throw new Error('FieldGuesser must be used with a resource'); } return ( diff --git a/src/list/FilterGuesser.tsx b/src/list/FilterGuesser.tsx index 2cefb685..65d01bf5 100644 --- a/src/list/FilterGuesser.tsx +++ b/src/list/FilterGuesser.tsx @@ -55,7 +55,7 @@ export const IntrospectedFilterGuesser = ({ const FilterGuesser = (props: FilterGuesserProps) => { const resource = useResourceContext(props); if (!resource) { - throw new Error('guesser must be used with a resource'); + throw new Error('FilterGuesser must be used with a resource'); } return ( diff --git a/src/list/ListGuesser.tsx b/src/list/ListGuesser.tsx index ed0d2493..49a95244 100644 --- a/src/list/ListGuesser.tsx +++ b/src/list/ListGuesser.tsx @@ -140,7 +140,7 @@ const ListGuesser = ({ }: ListGuesserProps) => { const resource = useResourceContext(props); if (!resource) { - throw new Error('guesser must be used with a resource'); + throw new Error('ListGuesser must be used with a resource'); } return ( diff --git a/src/show/ShowGuesser.tsx b/src/show/ShowGuesser.tsx index b18d2668..0e7abc21 100644 --- a/src/show/ShowGuesser.tsx +++ b/src/show/ShowGuesser.tsx @@ -79,7 +79,7 @@ export const IntrospectedShowGuesser = ({ const ShowGuesser = (props: ShowGuesserProps) => { const resource = useResourceContext(props); if (!resource) { - throw new Error('guesser must be used with a resource'); + throw new Error('ShowGuesser must be used with a resource'); } return (