rest-api: catch error from pluginRegisterFct()
authorYannick Gicquel <yannick.gicquel@iot.bzh>
Thu, 28 Jan 2016 15:31:50 +0000 (16:31 +0100)
committerYannick Gicquel <yannick.gicquel@iot.bzh>
Thu, 28 Jan 2016 15:31:50 +0000 (16:31 +0100)
commitdfc37699ea86f76c4010b3041d5b44fc5591501d
treed9dab2caa70213c0669c5fe12c34564f849cd129
parenta4b35de73384d4394b5201838c1c785355d9a7fd
rest-api: catch error from pluginRegisterFct()

in case NULL is returned, log an error and do not register
the plugin.

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
src/rest-api.c