Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gildas Garcia <[email protected]>
  • Loading branch information
fzaninotto and djhi authored Jul 10, 2024
1 parent b15efb6 commit 14ecb27
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/create/CreateGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion src/edit/EditGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion src/field/FieldGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion src/list/FilterGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion src/list/ListGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion src/show/ShowGuesser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 14ecb27

Please sign in to comment.