We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3dc49c2 + 7195450 commit e044e5bCopy full SHA for e044e5b
1 file changed
site/_extensions/scicloj/jank/jank.lua
@@ -638,6 +638,11 @@ local function eval_jank_raw(code, timeout)
638
local timeout_ms = timeout or "10000"
639
local cmd = "clj-nrepl-eval -p " .. shell_quote(jank_port) .. " --timeout " .. shell_quote(tostring(timeout_ms)) .. " " .. shell_quote(code) .. " 2>&1"
640
local handle = io.popen(cmd)
641
+
642
+ if not handle then
643
+ return nil, "opening `" .. cmd .. "` returned nil handle."
644
+ end
645
646
local raw = handle:read("*a")
647
handle:close()
648
0 commit comments