mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +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} ->
|
||||
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)}
|
||||
"""
|
||||
|
@ -1039,7 +1039,7 @@ defmodule AshPostgres.Expr do
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue