1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

hook: propagate error in hook_process()

This commit is contained in:
Steffen Vogel 2019-02-18 01:11:16 +01:00
parent 64357a0ce0
commit d19ae55c71

View file

@ -215,7 +215,9 @@ check: if (optarg == endptr)
unsigned send = recv;
hook_process(&h, smps, (unsigned *) &send);
ret = hook_process(&h, smps, (unsigned *) &send);
if (ret < 0)
throw RuntimeError("Failed to process samples");
sent = io_print(&io, smps, send);
if (sent < 0)