better errors + modules as devices (try #2) + pretty lua output

This commit is contained in:
kepler155c@gmail.com
2019-03-17 23:54:44 -04:00
parent 340636806c
commit e5312ca6ab
5 changed files with 38 additions and 20 deletions

View File

@@ -29,6 +29,7 @@ local http = _G.http
local os = _G.os
local string = _G.string
--[[
if not http._patched then
-- fix broken http get (http.get is not coroutine safe)
local syncLocks = { }
@@ -65,6 +66,7 @@ if not http._patched then
return s, m
end
end
--]]
local function loadUrl(url)
local c