We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show code and error
function get_error(expr::String) try sco(expr) catch e exc, bt = last(Base.catch_stack()) stacktrace = sprint(Base.showerror, exc, bt)::String stacktrace = Books.clean_stacktrace(stacktrace) lines = split(stacktrace, '\n') lines = lines[1:end-8] join(lines, '\n') end end function show_error(expr::String) out = output_block(JDS.get_error(expr)) code = code_block(expr) """ $code $out """ end
Also here, we need a process and post. The latter is useful in shortening output.
process
post
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Show code and error
Also here, we need a
process
andpost
. The latter is useful in shortening output.The text was updated successfully, but these errors were encountered: