webhook/hook
Cameron Moore ee64968d00 Proposal: Remove side-effects from hook package
This commit removes logging from the hook package and relies on returning errors
to convey...errors.  Encountered errors are returned immediately.  This commit
may alter the behavior of hook.  If errors were logged in the past but the given
function did not return immediately, this commit would change that behavior.

Uses named errors and custom error types.  You may be able to
consolidate ArgumentError and SourceError, but I need to think about it
some more.  These changes should be transparent to the caller if they're
expecting standard "error" types.

Tests have been updated to validate error return values and provide test
coverage for a few new lines of code introduced by this commit.
2015-07-31 20:57:26 -05:00
..
hook.go Proposal: Remove side-effects from hook package 2015-07-31 20:57:26 -05:00
hook_test.go Proposal: Remove side-effects from hook package 2015-07-31 20:57:26 -05:00