mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
Renamed getNoSuchRunningScriptErrorMessage() function
This commit is contained in:
parent
31f97f74fd
commit
200ccd3ad0
@ -310,7 +310,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
* @param {any[]} scriptArgs - Running script's arguments
|
* @param {any[]} scriptArgs - Running script's arguments
|
||||||
* @returns {string} Error message to print to logs
|
* @returns {string} Error message to print to logs
|
||||||
*/
|
*/
|
||||||
const getNoSuchRunningScriptErrorMessage = function(fn, ip, scriptArgs) {
|
const getCannotFindRunningScriptErrorMessage = function(fn, ip, scriptArgs) {
|
||||||
if (!Array.isArray(scriptArgs)) {
|
if (!Array.isArray(scriptArgs)) {
|
||||||
scriptArgs = [];
|
scriptArgs = [];
|
||||||
}
|
}
|
||||||
@ -756,7 +756,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
getScriptLogs: function(fn, ip, ...scriptArgs) {
|
getScriptLogs: function(fn, ip, ...scriptArgs) {
|
||||||
const runningScriptObj = getRunningScript(fn, ip, "getScriptLogs", scriptArgs);
|
const runningScriptObj = getRunningScript(fn, ip, "getScriptLogs", scriptArgs);
|
||||||
if (runningScriptObj == null) {
|
if (runningScriptObj == null) {
|
||||||
workerScript.log(`getScriptLogs() failed. ${getNoSuchRunningScriptErrorMessage(fn, ip, scriptArgs)}`);
|
workerScript.log(`getScriptLogs() failed. ${getCannotFindRunningScriptErrorMessage(fn, ip, scriptArgs)}`);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -765,7 +765,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
tail: function(fn, ip, ...scriptArgs) {
|
tail: function(fn, ip, ...scriptArgs) {
|
||||||
const runningScriptObj = getRunningScript(fn, ip, "tail", scriptArgs);
|
const runningScriptObj = getRunningScript(fn, ip, "tail", scriptArgs);
|
||||||
if (runningScriptObj == null) {
|
if (runningScriptObj == null) {
|
||||||
workerScript.log(`tail() failed. ${getNoSuchRunningScriptErrorMessage(fn, ip, scriptArgs)} `);
|
workerScript.log(`tail() failed. ${getCannotFindRunningScriptErrorMessage(fn, ip, scriptArgs)} `);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user