When custom error is created in check_resource_exists, use it
Merge pull request #78 from colin-adams/errors

When custom error is created in check_resource_exists, use it