From 25ae9b9a0dd477b887cedbfc0b7e642cded142af Mon Sep 17 00:00:00 2001 From: J87 <68929154+jake-87@users.noreply.github.com> Date: Sun, 21 Nov 2021 12:10:24 +1100 Subject: [PATCH] Add example to "no editor" error --- packages/ctl/ctl.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/ctl/ctl.js b/packages/ctl/ctl.js index 7f0230a1..d0ab66c9 100755 --- a/packages/ctl/ctl.js +++ b/packages/ctl/ctl.js @@ -129,7 +129,8 @@ masterConfigCommands.add(new libCommand.Command({ // needed for the process.env statements to not be flagged by eslint // prio for editors is CLI arg > env.EDITOR > env.VISUAL } else { - throw new libErrors.CommandError("No editor avalible. Checked CLI input, EDITOR and VISUAL env vars"); + throw new libErrors.CommandError(`No editor avalible. Checked CLI input, EDITOR and VISUAL env vars\ + Try "ctl master config edit "`); } let allConfigElements = ""; @@ -423,7 +424,8 @@ instanceConfigCommands.add(new libCommand.Command({ // needed for the process.env statements to not be flagged by eslint // prio for editors is CLI arg > env.EDITOR > env.VISUAL } else { - throw new libErrors.CommandError("No editor avalible. Checked CLI input, EDITOR and VISUAL env vars"); + throw new libErrors.CommandError(`No editor avalible. Checked CLI input, EDITOR and VISUAL env vars\ + Try "ctl instance config edit "`); } let allConfigElements = "";