fix(commands): tweak wording for consistency

This commit is contained in:
Dan 2021-12-19 03:23:26 +00:00
parent b2add6c26b
commit b8b3897e64
No known key found for this signature in database
GPG Key ID: CD0F515DA7B576B5
2 changed files with 4 additions and 4 deletions

@ -27,7 +27,7 @@ export function check(
// Check that the script is running on this machine
const runningScript = findRunningScript(scriptName, args.slice(1), server);
if (runningScript == null) {
terminal.error(`No script named ${scriptName} is not running on the server`);
terminal.error(`No script named ${scriptName} is running on the server`);
return;
}
runningScript.displayLog();

@ -20,7 +20,7 @@ export function tail(
} else if (typeof commandArray[0] === "string") {
const scriptName = terminal.getFilepath(commandArray[0]);
if (!isScriptFilename(scriptName)) {
terminal.error(`tail can only be called on ${validScriptExtensions.join(", ")} files, or by pid`);
terminal.error(`tail can only be called on ${validScriptExtensions.join(", ")} files, or by PID`);
return;
}
@ -66,11 +66,11 @@ export function tail(
}
// if there's no candidate then we just don't know.
terminal.error(`No script named ${scriptName} is not running on the server`);
terminal.error(`No script named ${scriptName} is running on the server`);
} else if (typeof commandArray[0] === "number") {
const runningScript = findRunningScriptByPid(commandArray[0], server);
if (runningScript == null) {
terminal.error(`No script with pid ${commandArray[0]} is not running on the server`);
terminal.error(`No script with PID ${commandArray[0]} is running on the server`);
return;
}
LogBoxEvents.emit(runningScript);