From b5e33ec0196c3a22ea5ddb7b93209bde861a508e Mon Sep 17 00:00:00 2001 From: Sean Franklin Date: Tue, 22 Nov 2016 12:14:11 -0500 Subject: [PATCH] Fix typo in README.md remove bad parameter in catch block --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.