Skip to content

return error when calling stop without first calling start#138

Merged
brandur merged 3 commits intoriverqueue:masterfrom
pmenglund:pme/client-stop
Dec 31, 2023
Merged

return error when calling stop without first calling start#138
brandur merged 3 commits intoriverqueue:masterfrom
pmenglund:pme/client-stop

Conversation

@pmenglund
Copy link
Contributor

If you call Stop() without first calling Start() you get a null pointer panic. Returning an error is much more user friendly.

Copy link
Contributor

@brandur brandur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Left a couple comments here, but I like it.

@brandur brandur merged commit b82725e into riverqueue:master Dec 31, 2023
brandur added a commit that referenced this pull request Dec 31, 2023
A few short changelog entries for the next release to include:

* #137
* #138
bgentry pushed a commit that referenced this pull request Dec 31, 2023
A few short changelog entries for the next release to include:

* #137
* #138
brandur added a commit that referenced this pull request Jan 6, 2024
A few short changelog entries for the next release to include:

* #137
* #138
brandur added a commit that referenced this pull request Jan 6, 2024
A few short changelog entries for the next release to include:

* #137
* #138
* #140
brandur added a commit that referenced this pull request Jan 6, 2024
A few short changelog entries for the next release to include:

* #137
* #138
* #140
brandur added a commit that referenced this pull request Jan 6, 2024
A few short changelog entries for the next release to include:

* #137
* #138
* #140
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.

2 participants