energostack / bisquitt

Bisquitt, a transparent MQTT-SN gateway
Eclipse Public License 2.0
21 stars 3 forks source link

Return specific context error from `ConnWithContext.{Read,Write}()` #31

Closed mprymek closed 2 years ago

mprymek commented 2 years ago

When context is closed because of an error, this error should also be returned from ConnWithContext.{Read,Write}() because it could be used by the caller.

This commit fixes e.g. a bug in bisquitt-sub where on some internal errors, only "context canceled" error is printed on the console, instead of the real error which caused the cancellation.