From 4319cdc2ca2211bf7cc3df8a0dcc50f11fa5ebb3 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 15 Jan 2022 10:20:24 +1300 Subject: [PATCH] Fix errata in example --- 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