fix(commands): error feedback, wording consistency

Found most (hopefully all) places where the error message wording
incorrectly was shown to the tune of 'no script exists', where it should
have been showing to the effect of 'script is not running'.
Also cleaned up some of the consistency in the wording and added a
'helper' export for knowing valid script extensions used in validation
of 'isScriptFilename', so we can have consistent error messaging.

Resolves danielyxie/bitburner#1966
This commit is contained in:
Dan
2021-12-19 03:10:43 +00:00
parent 790ffeb8a1
commit b2add6c26b
6 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export function kill(
if (res) {
terminal.print(`Killing script with PID ${pid}`);
} else {
terminal.error(`Failed to kill script with PID ${pid}. No such script exists`);
terminal.error(`Failed to kill script with PID ${pid}. No such script is running`);
}
return;