-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
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
@async and silent crash #7626
Comments
To find out that a
The operations "see if task failed" and "print error message" are separated, so you can do one without the other. |
For anyone struggling with this problem, here's a version of "Like @async except it prints errors to the terminal. 👶"
macro asynclog(expr)
quote
@async try
$(esc(expr))
catch ex
bt = stacktrace(catch_backtrace())
showerror(stderr, ex, bt)
rethrow(ex)
end
end
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If an @async block encounters an error it silently stops running. Any way to at least print out some errors?
The text was updated successfully, but these errors were encountered: