mbox

[3/3] hook: return error codes to previos functions

Message ID 1500473422-24614-3-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 31cd8db9d357c0492b947fad42a0c6b8ff70832f
Headers

Message

Jonatan Schlag July 20, 2017, 12:10 a.m. UTC
  When we call an hook we should not exit with the error code.
Instead we should return the code to the function that called that hook function.
So we candle handle errors better.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/functions/functions.hook | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)