Properly handle expression errors

This commit is contained in:
Redox 2023-09-21 21:46:14 +02:00
parent 65291ffde0
commit 91ef015134
No known key found for this signature in database
GPG Key ID: C10A433A95068388

View File

@ -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