BUGFIX: Changed no such file run command error to include all executable types (#1918)

This commit is contained in:
PerpetuaLux
2025-01-24 17:13:54 +00:00
committed by GitHub
parent faf34ad45d
commit 1fa2c55860

View File

@@ -14,7 +14,7 @@ export function runProgram(path: ProgramFilePath, args: (string | number | boole
const realProgramName = getRecordKeys(Programs).find((name) => name.toLowerCase() === programLowered);
if (!realProgramName || !Player.hasProgram(realProgramName)) {
Terminal.error(
`No such (exe, script, js, or cct) file! (Only finished programs that exist on your home computer or scripts on ${server.hostname} can be run)`,
`No such (js, jsx, ts, tsx, script, cct, or exe) file! (Only finished programs that exist on your home computer or scripts on ${server.hostname} can be run)`,
);
return;
}