mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -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()
|
motd()
|
||||||
local result, reason = os.execute(os.getenv("SHELL"))
|
local result, reason = os.execute(os.getenv("SHELL"))
|
||||||
if not result then
|
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")
|
io.write("Press any key to continue.\n")
|
||||||
os.sleep(0.5)
|
os.sleep(0.5)
|
||||||
require("event").pull("key")
|
require("event").pull("key")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user