Skip to content

Error when getting an unset context without a default - #101

Merged
centau merged 2 commits into
centau:mainfrom
kaan650:context-default-error
Oct 22, 2026
Merged

centau merged 2 commits into
centau:mainfrom
kaan650:context-default-error

Conversation

@kaan650

@kaan650 kaan650 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #97

Uses if has_default then as you suggested, so getting a context that was never set errors when it has no default. A nil default still works with vide.context(nil). Also added a line about this to the context() docs.

@centau
centau merged commit c2bd2c2 into centau:main Oct 22, 2026
1 check passed
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.

context() without a default returns nil instead of erroring

2 participants