Skip to content

fix: raise ArgumentError instead of RuntimeError - #23

Merged
nmbrone merged 1 commit into
mainfrom
refactor
Sep 2, 2026
Merged

fix: raise ArgumentError instead of RuntimeError#23
nmbrone merged 1 commit into
mainfrom
refactor

Conversation

@nmbrone

@nmbrone nmbrone commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Invalid :ets_options and an unknown bucket are both caller mistakes, so ArgumentError is the accurate type rather than a bare RuntimeError.

Behaviour change: code rescuing RuntimeError around Rkv.ets/1 needs updating.

Invalid :ets_options and an unknown bucket are both caller mistakes, so
ArgumentError is the accurate type. Code rescuing RuntimeError around
Rkv.ets/1 needs updating.

Also merges the two broadcast helpers into one, and returns :ok from
delete/2 explicitly instead of relying on the helper's return value.
@nmbrone nmbrone changed the title refactor: raise ArgumentError error; minor tweaks fix: raise ArgumentError instead of RuntimeError Sep 2, 2026
@nmbrone
nmbrone merged commit d1bc419 into main Sep 2, 2026
1 check passed
@nmbrone
nmbrone deleted the refactor branch September 2, 2026 07:59
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.

1 participant