mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Add example to "no editor" error
This commit is contained in:
1 file changed
+4
-2
+4
-2
@@ -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 = "";
|
||||
|
||||
Reference in new issue
Block a user