]> git.ipfire.org Git - people/stevee/network.git/commit
hook: return error codes to previos functions
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 19 Jul 2017 14:10:22 +0000 (16:10 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 17:10:14 +0000 (19:10 +0200)
commit31cd8db9d357c0492b947fad42a0c6b8ff70832f
treef490d19e649541b63fed3b3d00b8b2d40b511339
parenta63e51c6dfeeb50dc05a5af3539acb103606cf1f
hook: return error codes to previos functions

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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.hook