mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Properly handle expression errors
This commit is contained in:
parent
65291ffde0
commit
91ef015134
@ -57,7 +57,7 @@ local function compile_expression(str, extra_lib)
|
|||||||
functions.select = select
|
functions.select = select
|
||||||
str = "local IN = select(1, ...) return " .. str
|
str = "local IN = select(1, ...) return " .. str
|
||||||
|
|
||||||
local func = CompileString(str, "pac_expression", false)
|
local func = CompileString(str, "pac_expression", true)
|
||||||
|
|
||||||
if isstring(func) then
|
if isstring(func) then
|
||||||
return false, func
|
return false, func
|
||||||
|
Loading…
Reference in New Issue
Block a user