mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Merge pull request #1311 from ChickenNuggers/patch-2
tostring( reason ) is never false/nil
This commit is contained in:
commit
991ef66a3a
@ -184,7 +184,7 @@ while true do
|
||||
motd()
|
||||
local result, reason = os.execute(os.getenv("SHELL"))
|
||||
if not result then
|
||||
io.stderr:write((tostring(reason) or "unknown error") .. "\n")
|
||||
io.stderr:write((reason ~= nil and tostring(reason) or "unknown error") .. "\n")
|
||||
io.write("Press any key to continue.\n")
|
||||
os.sleep(0.5)
|
||||
require("event").pull("key")
|
||||
|
Loading…
x
Reference in New Issue
Block a user