mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
chore: add error context to hydrate references
This commit is contained in:
parent
944a4e128e
commit
48e8a414da
1 changed files with 2 additions and 2 deletions
|
@ -811,7 +811,7 @@ defmodule AshPostgres.Expr do
|
||||||
|
|
||||||
{:error, error} ->
|
{:error, error} ->
|
||||||
raise """
|
raise """
|
||||||
Failed to hydrate references in #{inspect(calculation.module.expression(calculation.opts, calculation.context))}
|
Failed to hydrate references for resource #{inspect(resource)} in #{inspect(calculation.module.expression(calculation.opts, calculation.context))}
|
||||||
|
|
||||||
#{inspect(error)}
|
#{inspect(error)}
|
||||||
"""
|
"""
|
||||||
|
@ -1039,7 +1039,7 @@ defmodule AshPostgres.Expr do
|
||||||
end
|
end
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
raise "Failed to hydrate references in #{inspect(calculation.module.expression(calculation.opts, calculation.context))}"
|
raise "Failed to hydrate references for #{inspect(ref.resource)} in #{inspect(calculation.module.expression(calculation.opts, calculation.context))}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue