Replace deprecated deferred.error() with fail()
Merge pull request #184 from rosenfeld/patch-1

Replace deprecated deferred.error() with fail()