From f727eb6a6e0adca7642000c63db24b6348c8c346 Mon Sep 17 00:00:00 2001 From: Vivek Nayyar Date: Sun, 3 Feb 2019 20:00:41 +0530 Subject: [PATCH] :pencil2: fixed the catchBlock docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 224a93e..3062799 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ If you want to replace the default `console.log(e)` with your custom function ca you can pass that as an option `--catchBlock` ```sh -jscodeshift -t transforms/async-await-with-try-catch.js --catchBlock="error.handleError" +jscodeshift -t transforms/async-await-with-try-catch.js --catchBlock="error.handleError(e)" ``` This will transform your code to:-