Skip to content

Commit 09d6c60

Browse files
authored
chore(richtext-lexical): improve block not found error message (#10348)
1 parent 5e4e274 commit 09d6c60

File tree

1 file changed

+1
-1
lines changed
  • packages/richtext-lexical/src/features/blocks/server

1 file changed

+1
-1
lines changed

packages/richtext-lexical/src/features/blocks/server/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const blockValidationHOC = (
2121

2222
// validate block
2323
if (!block) {
24-
return 'Block not found'
24+
return `Block ${blockFieldData.blockType} not found`
2525
}
2626

2727
/**

0 commit comments

Comments
 (0)