From 48366177453d6ebb7692c4769ecf6ccf0aed15b1 Mon Sep 17 00:00:00 2001 From: Jordan Turner Date: Wed, 15 Dec 2021 17:19:45 -0700 Subject: [PATCH 1/2] made the terminal error more clear based on issue 1920 --- src/Terminal/commands/runProgram.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terminal/commands/runProgram.ts b/src/Terminal/commands/runProgram.ts index 6ed8c70a3..3f734f345 100644 --- a/src/Terminal/commands/runProgram.ts +++ b/src/Terminal/commands/runProgram.ts @@ -20,7 +20,7 @@ export function runProgram( const programName = args[0] + ""; if (!player.hasProgram(programName)) { - terminal.error("No such executable on home computer (Only programs that exist on your home computer can be run)"); + terminal.error("No such (exe, script, js, or ns) file on home computer (Only programs that exist on your home computer can be run)"); return; } From ac79d0aea4e0802601b22d47072bcafb9e492147 Mon Sep 17 00:00:00 2001 From: Jordan Turner Date: Wed, 15 Dec 2021 17:52:08 -0700 Subject: [PATCH 2/2] adjusted the wording and added dynamic player server location --- src/Terminal/commands/runProgram.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Terminal/commands/runProgram.ts b/src/Terminal/commands/runProgram.ts index 3f734f345..fca5646da 100644 --- a/src/Terminal/commands/runProgram.ts +++ b/src/Terminal/commands/runProgram.ts @@ -20,7 +20,8 @@ export function runProgram( const programName = args[0] + ""; if (!player.hasProgram(programName)) { - terminal.error("No such (exe, script, js, or ns) file on home computer (Only programs that exist on your home computer can be run)"); + terminal.error(`No such (exe, script, js, or ns) file! (Only programs that exist on your home computer or scripts on ${player.getCurrentServer().hostname + } can be run)`); return; }