Branch: refs/heads/master
Home: https://github.com/conformal/btcchain
Commit: 6e0aab52df3e3495939fbe6112d2fc5eb161792e
https://github.com/conformal/btcchain/commit/6e0aab52df3e3495939fbe6112d2fc5eb161792e
Author: Dave Collins <[email protected]>
Date: 2014-06-24 (Tue, 24 Jun 2014)
Changed paths:
M accept.go
M doc.go
A error.go
M process.go
M validate.go
M validate_test.go
Log Message:
-----------
Improve the RuleError type to include error codes.
This commit changes the RuleError type to a struct which consists of an
error code and human-readable description.
>From a usage perspective, existing code should not break since type
asserting an error to a RuleError still works in the same manner. The
difference is the caller can now take that type asserted RuleError and
access the .ErrorCode field on it to programmatically identify the
specific rule that was violated.
ok @jrick
Commit: 0550bbbdc5ea39f8c5e8490580dc03f0e7d9121d
https://github.com/conformal/btcchain/commit/0550bbbdc5ea39f8c5e8490580dc03f0e7d9121d
Author: Dave Collins <[email protected]>
Date: 2014-06-24 (Tue, 24 Jun 2014)
Changed paths:
A error_test.go
M test_coverage.txt
Log Message:
-----------
Add tests for new RuleError and ErrorCode types.
Compare:
https://github.com/conformal/btcchain/compare/87bef61b3058...0550bbbdc5ea