add line break between error message and help output
This commit is contained in:
parent
6e444aaf65
commit
6e60566b27
|
@ -277,7 +277,7 @@ class Cmd {
|
||||||
const node = options.node || 'vm';
|
const node = options.node || 'vm';
|
||||||
const urlRegexExp = /^(vm|embark|((ws|https?):\/\/([a-zA-Z0-9_.-]*):?([0-9]*)?))$/i;
|
const urlRegexExp = /^(vm|embark|((ws|https?):\/\/([a-zA-Z0-9_.-]*):?([0-9]*)?))$/i;
|
||||||
if (!urlRegexExp.test(node)) {
|
if (!urlRegexExp.test(node)) {
|
||||||
console.error(`invalid --node option: must be 'vm', 'embark' or a valid URL`.red);
|
console.error(`invalid --node option: must be 'vm', 'embark' or a valid URL\n`.red);
|
||||||
options.outputHelp();
|
options.outputHelp();
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue