Make the backends propagate errors
authorMaxime Coquelin <mcoquelin.stm32@gmail.com>
Fri, 11 Mar 2016 10:16:41 +0000 (11:16 +0100)
committerMaxime Coquelin <mcoquelin.stm32@gmail.com>
Mon, 14 Mar 2016 14:12:44 +0000 (15:12 +0100)
commit64a48c704ff802b3a08cbdf0dd729f4a7a39ea67
treef1a2659b84ec7c16c6aafedcb42b98a037bc1792
parent89c3b1462b8c4b96e2071a87883aed5e030bbef9
Make the backends propagate errors

As the libusb returns errors, make the backends propagates them so that
callers can decide to continue or stop task execution.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
src/stlink-common.h
src/stlink-sg.c
src/stlink-usb.c