-
Notifications
You must be signed in to change notification settings - Fork 54
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
Raise may call an atom - undefined module #76
Comments
Good catch @tomdos! I'll look into it next week and try to cut a new minor version with the fix |
@joaomdmoura i got a similar error:
and errors from oban
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an issue in catching an exit here https://github.com/joaomdmoura/machinery/blob/master/lib/machinery.ex#L95
The raise expect a module or a string. However it may get an atom and Elixir will try to call
exception/1
from that atom which obviously fails.How to reproduce it:
Output:
As you can see I used undefined module and this gets to
raise
which tries to call:undef.exception/1
which is undefined as well.Maybe as a quick fix changing
raise
tothrow
may work or removing catching at all?The text was updated successfully, but these errors were encountered: