Skip to content

Commit 6390cdb

Browse files
committed
Improve error reporting in probe_executor()
1 parent c1828fe commit 6390cdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Sandbox.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ function probe_executor(executor::SandboxExecutor; verbose::Bool = false)
183183
cmd_stdout = String(take!(cmd_stdout))
184184
stdout_lines = split(cmd_stdout, "\n")
185185
if !("hello julia" in stdout_lines)
186+
cmd_stderr = String(take!(cmd_stderr))
187+
stderr_lines = split(cmd_stderr, "\n")
186188
if verbose
187-
@warn(" -> Basic stdout sentinel missing!", stdout_lines)
189+
@warn(" -> Basic stdout sentinel missing!", stdout_lines, stderr_lines)
188190
end
189191
return false
190192
end

0 commit comments

Comments
 (0)