diff --git a/README.md b/README.md index 3b67d26..f98d8de 100644 --- a/README.md +++ b/README.md @@ -503,7 +503,7 @@ var options = { }; rp(options) - .catch(errors.TransformError, function (reason) { + .catch(function (reason) { console.log(reason.cause.message); // => Transform failed! // reason.response is the original response for which the transform operation failed }); @@ -660,4 +660,4 @@ If you want to debug a test you should use `gulp test-without-coverage` to run a In case you never heard about the [ISC license](http://en.wikipedia.org/wiki/ISC_license) it is functionally equivalent to the MIT license. -See the [LICENSE file](LICENSE) for details. \ No newline at end of file +See the [LICENSE file](LICENSE) for details.