fix(modules): drop misleading "imported module" wording for entry syntax errors #37

Merged
abiwab merged 1 commit from fix/modules-entry-parse-error-label into main 2026-09-29 11:11:11 +02:00
Owner

A syntax error in the recipe being edited was reported as Syntax error in imported module "<the file itself>", even when nothing is imported. Seen in the CLI and the playground.

  • The entry document now shows the parser message as is; errors in a real dependency keep the "imported module" wording.
  • Adds isEntry to the MODULE_PARSE_ERROR payload. The template checks === true on purpose: the docs table renders templates with a proxy returning truthy strings, and must keep showing the imported-module form.
  • Tests for both cases, and a patch changeset.

Found while checking that the new quantity errors from #24 are visible everywhere; independent of that PR.

A syntax error in the recipe being edited was reported as `Syntax error in imported module "<the file itself>"`, even when nothing is imported. Seen in the CLI and the playground. - The entry document now shows the parser message as is; errors in a real dependency keep the "imported module" wording. - Adds `isEntry` to the `MODULE_PARSE_ERROR` payload. The template checks `=== true` on purpose: the docs table renders templates with a proxy returning truthy strings, and must keep showing the imported-module form. - Tests for both cases, and a `patch` changeset. Found while checking that the new quantity errors from #24 are visible everywhere; independent of that PR.
fix(modules): drop misleading "imported module" wording for entry syntax errors
All checks were successful
CI / Build, Test & Publish (pull_request) Successful in 2m11s
a5891a9c9a
abiwab scheduled this pull request to auto merge when all checks succeed 2026-09-29 11:09:14 +02:00
abiwab merged commit 808b4d6dff into main 2026-09-29 11:11:11 +02:00
abiwab deleted branch fix/modules-entry-parse-error-label 2026-09-29 11:11:11 +02:00
Sign in to join this conversation.
No description provided.