Merge pull request #61 from dnephin/assert-error-type

Add cmp.ErrorType