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:
parent
64357a0ce0
commit
d19ae55c71
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue