socket: Raise an error if open function failed.
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 21 Nov 2019 15:13:52 +0000 (16:13 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 3 Dec 2019 18:46:26 +0000 (19:46 +0100)
commit3111212de145f0bb8b939856ea659c3a86b348d9
tree9bcbb21f4354e043f244df1085c019bdf8296a66
parent3d3711a7b4f1ac20fa19ded2cbada58d74e549b4
socket: Raise an error if open function failed.

The socket opening wasn't tested and we fails later on another function
using the wrongly opened socket. This would not happens anymore.

Change-Id: I9b30bd9fc13b99277cbef6f7aeaddadc57ad0b18
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/utils/socketcan-j1939/socketcan-j1939.cpp
low-can-binding/utils/socketcan.cpp