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

Improve error message when returning non-conn #756

Merged
merged 2 commits into from
Aug 28, 2018

Conversation

princemaple
Copy link
Contributor

(RuntimeError) expected action/2 to return a Plug.Conn, all plugs must receive a connection (conn) and return a connection

Does not tell what is really happening

(RuntimeError) expected action/2 to return a Plug.Conn, all plugs must receive a connection (conn) and return a connection

Does not provide much information about what actually is happening
@josevalim
Copy link
Member

josevalim commented Aug 28, 2018 via email

@princemaple
Copy link
Contributor Author

Sorry, missed the unquote, thought it was another function call. Tests are passing now.

@josevalim josevalim merged commit c528f3f into elixir-plug:master Aug 28, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@princemaple princemaple deleted the patch-2 branch August 28, 2018 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants