Skip to content

Improve messages on errors when loading the bundle script - #1672

Merged
bakpakin merged 1 commit into
janet-lang:masterfrom
pyrmont:bugfix.bundle-script-loading
Nov 23, 2025
Merged

bakpakin merged 1 commit into
janet-lang:masterfrom
pyrmont:bugfix.bundle-script-loading

Conversation

@pyrmont

@pyrmont pyrmont commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

After seeing the report in janet-lang/spork#257, I realised that catching all errors when loading the bundle script can obscure errors other than the one that prompted #1660. This PR rewrites the error message only if the bundle script cannot be found but otherwise propagates the error to the caller.

This fixes #1671.

@bakpakin

Copy link
Copy Markdown
Member

LGTM!

@bakpakin
bakpakin merged commit a9e6766 into janet-lang:master Nov 23, 2025
13 checks passed
@pyrmont
pyrmont deleted the bugfix.bundle-script-loading branch November 23, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error information in get-bundle-module on the light side?

2 participants