Skip to content

Instantly share code, notes, and snippets.

@softberries
Created March 21, 2023 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/03ec1212fd55fbf028ffd78588c738df to your computer and use it in GitHub Desktop.
Save softberries/03ec1212fd55fbf028ffd78588c738df to your computer and use it in GitHub Desktop.
def handle_message(_, %Message{data: %{event: {:error, err}}} = message, _) do
IO.puts("#{inspect(self())} Handling parsing error: #{inspect(err)}")
Broadway.Message.failed(message,"invalid-data")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment