From a2a3b658b22de17c25cb93001512699037bdcb7f Mon Sep 17 00:00:00 2001 From: Ivan Martynau Date: Fri, 4 Sep 2026 11:05:09 +0200 Subject: [PATCH] Replace cause method to property usage in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4bc4b14..d7ace33 100644 --- a/README.md +++ b/README.md @@ -93,10 +93,10 @@ program's name to the VError's `message`. Or just call [node-cmdutil.fail(your_verror)](https://github.com/joyent/node-cmdutil), which does this for you. -You can get the next-level Error using `err.cause()`: +You can get the next-level Error using `err.cause` property: ```javascript -console.error(err2.cause().message); +console.error(err2.cause.message); ``` prints: