mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +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
|
// needed for the process.env statements to not be flagged by eslint
|
||||||
// prio for editors is CLI arg > env.EDITOR > env.VISUAL
|
// prio for editors is CLI arg > env.EDITOR > env.VISUAL
|
||||||
} else {
|
} 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 = "";
|
let allConfigElements = "";
|
||||||
@@ -423,7 +424,8 @@ instanceConfigCommands.add(new libCommand.Command({
|
|||||||
// needed for the process.env statements to not be flagged by eslint
|
// needed for the process.env statements to not be flagged by eslint
|
||||||
// prio for editors is CLI arg > env.EDITOR > env.VISUAL
|
// prio for editors is CLI arg > env.EDITOR > env.VISUAL
|
||||||
} else {
|
} 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 = "";
|
let allConfigElements = "";
|
||||||
|
|||||||
Reference in new issue
Block a user