The hook package should be self-contained and return errors instead of relying on the log subsystem. This commit removes the logging side-effects from the hook package. Custom errors are returned that should be transparent to the caller -- they can just treat them as simple errors if they don't care to check the type. |
||
---|---|---|
.. | ||
hook_test.go | ||
hook.go |