This commit is contained in:
kepler155c@gmail.com 2017-09-05 09:34:42 -04:00
parent bb18cbc3b4
commit f7a03b2eea
1 changed files with 2 additions and 11 deletions

View File

@ -1,13 +1,4 @@
local branch = 'master'
if fs.exists('.branch') then
local f = fs.open('.branch', "r")
if f then
branch = f.readAll()
f.close()
end
end
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/' .. branch .. '/sys/apis'
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/master/sys/apis'
local PASTEBIN_URL = 'http://pastebin.com/raw'
local GIT_URL = 'https://raw.githubusercontent.com'
@ -150,7 +141,7 @@ local function requireWrapper(env)
if fn then
local module, msg = fn(modname, env)
if not module then
error(msg)
error(msg or (modname .. ' module returned nil'), 2)
end
package.loaded[modname] = module
return module