Skip to content
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

obscure error when module to protect does not exist #22

Closed
msz opened this issue Nov 19, 2019 · 2 comments
Closed

obscure error when module to protect does not exist #22

msz opened this issue Nov 19, 2019 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@msz
Copy link
Owner

msz commented Nov 19, 2019

** (MatchError) no match of right hand side value: :error
     stacktrace:
       (hammox) lib/hammox.ex:336: Hammox.fetch_typespecs/3
       (hammox) lib/hammox.ex:322: Hammox.fetch_typespecs!/3
       (hammox) lib/hammox.ex:121: Hammox.protect/2
       (hammox) lib/hammox.ex:178: anonymous fn/4 in Hammox.protect/3
       (elixir) lib/enum.ex:1336: Enum."-map/2-lists^map/1-0-"/2
       (elixir) lib/enum.ex:2994: Enum.flat_map_list/2
       (hammox) lib/hammox.ex:168: Hammox.protect/3

Should show a good explanation what happened instead.

@msz msz added the bug Something isn't working label Nov 19, 2019
@msz
Copy link
Owner Author

msz commented Nov 19, 2019

Spotted when the behaviour module name was invalid but might break with wrong implementation module too.

@msz
Copy link
Owner Author

msz commented Oct 7, 2020

Closed in #52

@msz msz closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant