Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Vigil.call/2 and rescue #4

@ericsullivan

Description

@ericsullivan

I just received a RuntimeError:

expected Vigil.call/2 to return a Plug.Conn, all plugs must receive a connection (conn) and return a connection, got: :ok

caused by the rescue returning :ok

def call(%Plug.Conn{} = conn, opts) do
    ...
  rescue
    e ->
      LogFormatter.log(conn, e, opts)
  end

Did you want to call reraise/2 or forbid_connection?

I didn't set the log_level in the plug so I'm not sure of the underlying exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions