We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0905cc8 commit 1dfb8c1Copy full SHA for 1dfb8c1
src/discovery/utils.jl
@@ -41,13 +41,14 @@ end
41
function safe_exec(str)
42
cmd = julia_cmd_projects(str)
43
success = false
44
- error_str = mktemp() do path, _
45
- p = run(pipeline(cmd; stdout=path, stderr=path); wait=false)
+ res_str, err_str = mktemp() do path, _
+ p = run(pipeline(cmd; stdout=path, stderr="$path.err"); wait=false)
46
wait(p)
47
success = p.exitcode == 0
48
- strip(String(read(path)))
+ res_str = strip(String(read(path)))
49
+ err_str = strip(String(read("$path.err")))
50
end
- return success, error_str
51
+ return success, res_str
52
53
54
"""
0 commit comments