@@ -34,14 +34,14 @@ export function moveFirstBlockInColumn(
3434 const blockInfo = getBlockInfoFromResolvedPos ( blockBeforePos ) ;
3535 if ( ! blockInfo . isBlockContainer ) {
3636 throw new Error (
37- "Invalid blockBeforePos passed to moveFirstBlockInColumn : does not point to blockContainer node." ,
37+ "Invalid blockBeforePos: does not point to blockContainer node." ,
3838 ) ;
3939 }
4040
4141 const prevBlockInfo = getPrevBlockInfo ( tr . doc , blockInfo . bnBlock . beforePos ) ;
4242 if ( prevBlockInfo ) {
4343 throw new Error (
44- "Invalid blockBeforePos passed to moveFirstBlockInColumn : does not point to first blockContainer node in column." ,
44+ "Invalid blockBeforePos: does not point to first blockContainer node in column." ,
4545 ) ;
4646 }
4747
@@ -51,15 +51,15 @@ export function moveFirstBlockInColumn(
5151 ) ;
5252 if ( parentBlockInfo ?. blockNoteType !== "column" ) {
5353 throw new Error (
54- "Invalid blockBeforePos passed to moveFirstBlockInColumn : blockContainer node is not child of column." ,
54+ "Invalid blockBeforePos: blockContainer node is not child of column." ,
5555 ) ;
5656 }
5757
5858 const column = parentBlockInfo ;
5959 const columnList = getParentBlockInfo ( tr . doc , column . bnBlock . beforePos ) ;
6060 if ( columnList ?. blockNoteType !== "columnList" ) {
6161 throw new Error (
62- "Invalid blockBeforePos passed to moveFirstBlockInColumn : blockContainer node is child of column, but column is not child of columnList node." ,
62+ "Invalid blockBeforePos: blockContainer node is child of column, but column is not child of columnList node." ,
6363 ) ;
6464 }
6565
@@ -245,18 +245,18 @@ export function removeAndInsertBlocks<
245245 const column = getBlockInfoFromResolvedPos ( $pos ) ;
246246 if ( column . blockNoteType !== "column" ) {
247247 throw new Error (
248- `Block of type ${ column . blockNoteType } was found as child of columnList.` ,
248+ `Invalid block: ${ column . blockNoteType } was found as child of columnList.` ,
249249 ) ;
250250 }
251251 const columnList = getParentBlockInfo ( tr . doc , column . bnBlock . beforePos ) ;
252252 if ( ! columnList ) {
253253 throw new Error (
254- `Block of type column was found without a parent columnList.` ,
254+ `Invalid block: column was found without a parent columnList.` ,
255255 ) ;
256256 }
257257 if ( columnList ?. blockNoteType !== "columnList" ) {
258258 throw new Error (
259- `Block of type ${ columnList . blockNoteType } was found as a parent of column.` ,
259+ `Invalid block: ${ columnList . blockNoteType } was found as a parent of column.` ,
260260 ) ;
261261 }
262262
0 commit comments