From c984ab85ae228ff49070d29d473e68cf0b987f0c Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 15 Jan 2022 11:56:07 +1300 Subject: [PATCH] Fix errata in example (#1676) --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index f1b1b4c3a..992b3bdc7 100644 --- a/Readme.md +++ b/Readme.md @@ -1012,8 +1012,8 @@ As well as the error message, you can optionally specify the `exitCode` (used wi and `code` (used with `CommanderError`). ```js -program.exit('Password must be longer than four characters'); -program.exit('Custom processing has failed', { exitCode: 2, code: 'my.custom.error' }); +program.error('Password must be longer than four characters'); +program.error('Custom processing has failed', { exitCode: 2, code: 'my.custom.error' }); ``` ### Override exit and output handling