Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Aug 28, 2024
1 parent 81c2f2e commit 8a6c797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class Core {
const index = event.detail.index;

if (index.blockIndex === undefined) {
throw new Error('Block index should be defined');
throw new Error('Block index should be defined. Probably something wrong with the Editor Model. Please, report this issue');
}

const blockToolAdapter = new BlockToolAdapter(this.#model, this.#caretAdapter, index.blockIndex);
Expand Down

0 comments on commit 8a6c797

Please sign in to comment.