Skip to content

Commit

Permalink
Merge pull request #53 from PumasAI/jk/return-error
Browse files Browse the repository at this point in the history
Return julia error so that quarto can display why execution failed
  • Loading branch information
MichaelHatherly authored Mar 6, 2024
2 parents 74f9524 + a4ac96c commit b3d6736
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
Expand Up @@ -160,11 +160,11 @@ end

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

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

0 comments on commit b3d6736

Please sign in to comment.