From 6bd120dd0ca32e917782ee6c360e4c60b7ab917f Mon Sep 17 00:00:00 2001 From: Kayla Firestack Date: Mon, 2 Feb 2026 15:16:04 -0500 Subject: [PATCH] fix: properly show error when failing to fetch shape data --- lib/arrow/shuttles/route.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/arrow/shuttles/route.ex b/lib/arrow/shuttles/route.ex index cfa332645..fdfb51c21 100644 --- a/lib/arrow/shuttles/route.ex +++ b/lib/arrow/shuttles/route.ex @@ -48,7 +48,11 @@ defmodule Arrow.Shuttles.Route do end changeset - |> then(&if error, do: add_error(&1, :shape_id, error), else: &1) + |> then( + &if error, + do: add_error(&1, :shape_id, "Error getting shape data: %{error}", error: inspect(error)), + else: &1 + ) |> cast_assoc(:route_stops, with: &Arrow.Shuttles.RouteStop.changeset(&1, &2, coordinates), sort_param: :route_stops_sort,