mirror of
https://github.com/kepler155c/opus
synced 2025-11-19 16:45:21 +00:00
stack traces
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user