Skip to content

fix: catch error thrown in getMultipleHoldingRegisters#543

Merged
yaacov merged 1 commit into
yaacov:masterfrom
everhardt:fix-catch-error-in-getMultipleHoldingRegisters
Jan 31, 2024
Merged

fix: catch error thrown in getMultipleHoldingRegisters#543
yaacov merged 1 commit into
yaacov:masterfrom
everhardt:fix-catch-error-in-getMultipleHoldingRegisters

Conversation

@everhardt

@everhardt everhardt commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

It's inconsistent that a rejected promise returned by getMultipleHoldingRegisters and a callback with and error are handled, but a synchronous throw is not. This PR fixes that.

@yaacov

yaacov commented Jan 31, 2024

Copy link
Copy Markdown
Owner

💚 Thanks

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