Add example to "no editor" error

This commit is contained in:
J87 authored and GitHub committed 2021-11-21 12:10:24 +11:00
1 parent 6b10f2ab7d
commit 25ae9b9a0d
1 file changed
+4 -2
+4 -2
View File
@@ -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 <editor of choice>"`);
}
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 <instance> <editor of choice>"`);
}
let allConfigElements = "";