switch error checking logic to use failure?
Merge pull request #84 from sirwolfgang/master

switch error checking logic to use failure?