Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return julia error so that quarto can display why execution failed
Browse files Browse the repository at this point in the history
jkrumbiegel committed Mar 6, 2024
1 parent 49e3c3c commit 07e7aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socket.jl
Original file line number Diff line number Diff line change
@@ -153,11 +153,11 @@ end

function _log_error(message, error, backtrace)
@error message error backtrace
return (; error = message)
return (; error = message, juliaError = sprint(Base.showerror, error, backtrace))

Check warning on line 156 in src/socket.jl

Codecov / codecov/patch

src/socket.jl#L156

Added line #L156 was not covered by tests
end
function _log_error(message)
@error message
return (; error = message)
return (; error = message, juliaError = sprint(Base.showerror, error, backtrace))

Check warning on line 160 in src/socket.jl

Codecov / codecov/patch

src/socket.jl#L160

Added line #L160 was not covered by tests
end

# TODO: check what the message schema is for this.

0 comments on commit 07e7aac

Please sign in to comment.