Skip to content

Commit 279c740

Browse files
committed
Fix unallowed label error message
Signed-off-by: Nathan Rebours <[email protected]>
1 parent 00dc7d9 commit 279c740

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/block.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ let version_enabled version =
289289
let get_label f (labels : Label.t list) = Util.List.find_map f labels
290290

291291
let label_not_allowed ~loc ~label ~kind =
292-
loc_error ~loc "`%s` label is required for %s blocks." label kind
292+
loc_error ~loc "`%s` label is not allowed for %s blocks." label kind
293293

294294
let label_required ~loc ~label ~kind =
295295
loc_error ~loc "`%s` label is required for %s blocks." label kind
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[mdx] Fatal error: File "test-case.md", lines 3-4: invalid code block: `part` label is required for non-OCaml include blocks.
1+
[mdx] Fatal error: File "test-case.md", lines 3-4: invalid code block: `part` label is not allowed for non-OCaml include blocks.

0 commit comments

Comments
 (0)