• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supavisor / 13571615907

27 Feb 2025 04:51PM UTC coverage: 35.725% (-10.9%) from 46.628%
13571615907

push

github

web-flow
chore: parallel Coveralls.io reporting (#614)

747 of 2091 relevant lines covered (35.72%)

112.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/supavisor_web/controllers/fallback_controller.ex
1
defmodule SupavisorWeb.FallbackController do
2
  @moduledoc """
3
  Translates controller action results into valid `Plug.Conn` responses.
4

5
  See `Phoenix.Controller.action_fallback/1` for more details.
6
  """
7
  use SupavisorWeb, :controller
8

9
  # This clause handles errors returned by Ecto's insert/update/delete.
10
  def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
11
    conn
12
    |> put_status(:unprocessable_entity)
13
    |> put_view(SupavisorWeb.ChangesetView)
14
    |> render("error.json", changeset: changeset)
×
15
  end
16

17
  # This clause is an example of how to handle resources that cannot be found.
18
  def call(conn, {:error, :not_found}) do
19
    conn
20
    |> put_status(:not_found)
21
    |> put_view(SupavisorWeb.ErrorView)
22
    |> render(:"404")
×
23
  end
24
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc