diff --git a/src/villas-hook.cpp b/src/villas-hook.cpp index 45f9288fd..2d30b86e9 100644 --- a/src/villas-hook.cpp +++ b/src/villas-hook.cpp @@ -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)