Closed Zandor300 closed 4 months ago
@stefanpoeter Could you take a look at my PR?
Hi @Zandor300, sorry for the late reply and thank you very much for your contribution. Can you increase the patch number in the package.json. Then I approve it right away.
@stefanpoeter I've changed the version from 4.0.10
to 40.0.11
.
If a UserRequestError is thrown because of a Modbus Exception, I added an improved message to the error.
Before it would just print out:
console.error(..)
would print out theresponse.body.code
and using that could be seen what the issue is, but when I use the error in conjunction with Sentry error reporting, it won't provide me those values.Now the error message will be something like:
@stefanpoeter Could you take a look?