1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-19 16:45:21 +00:00

stack traces

This commit is contained in:
kepler155c@gmail.com
2019-03-07 13:14:16 -05:00
parent a4145951f7
commit 89f95ca45b
4 changed files with 16 additions and 16 deletions

View File

@@ -13,6 +13,7 @@ sandboxEnv.shell = shell
_G.requireInjector(_ENV)
local trace = require('trace')
local Util = require('util')
local DIR = (parentShell and parentShell.dir()) or ""
@@ -88,7 +89,7 @@ function shell.run(...)
local env = setmetatable(Util.shallowCopy(sandboxEnv), { __index = _G })
_G.requireInjector(env)
local r = { pcall(run, env, ...) }
local r = { trace(run, env, ...) }
if _ENV.multishell then
_ENV.multishell.setTitle(_ENV.multishell.getCurrent(), oldTitle or 'shell')