Skip to content

Conversation

ZachMayry
Copy link
Contributor

I was having an error with this particular part of the code.

[error] #PID<0.609.0> running ExampleWeb.Endpoint (connection 
#PID<0.592.0>, stream id 27) terminated
Server: localhost:4000 (https)
Request: POST /u2f/finish_registration
** (exit) an exception was raised:
    ** (CaseClauseError) no case clause matching: 0
        (u2f_ex) lib/models/errors.ex:11: U2FEx.Errors.get_retval_from_error/1
        (u2f_ex) lib/u2f_ex.ex:70: U2FEx.finish_registration/2        (example) lib/example_web/controllers/u2f_controller.ex:30: ExampleWeb.U2FController.finish_registration/2

Changing the order of these functions fixes the problem.

@Ianleeclark Ianleeclark merged commit 20efcf7 into Ianleeclark:master Jul 6, 2019
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.

2 participants