Skip to content

Commit 1dfb8c1

Browse files
committed
More robust artifact library loading
1 parent 0905cc8 commit 1dfb8c1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/discovery/utils.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ end
4141
function safe_exec(str)
4242
cmd = julia_cmd_projects(str)
4343
success = false
44-
error_str = mktemp() do path, _
45-
p = run(pipeline(cmd; stdout=path, stderr=path); wait=false)
44+
res_str, err_str = mktemp() do path, _
45+
p = run(pipeline(cmd; stdout=path, stderr="$path.err"); wait=false)
4646
wait(p)
4747
success = p.exitcode == 0
48-
strip(String(read(path)))
48+
res_str = strip(String(read(path)))
49+
err_str = strip(String(read("$path.err")))
4950
end
50-
return success, error_str
51+
return success, res_str
5152
end
5253

5354
"""

0 commit comments

Comments
 (0)