Skip to content

Commit

Permalink
Add hint to error
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Jul 10, 2024
1 parent cde97de commit 7ba8860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/phase_space_point.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function momentum(
if (number_particles(process(psp), dir, species) != 1)
throw(
InvalidInputError(
"this overload only works when exactly one $dir $species exists in the phase space point",
"this overload only works when exactly one $dir $species exists in the phase space point, but $(number_paarticles(process(psp), dir, species)) exist in this one; to specify an index, use momentum(psp, dir, species, n)",
),
)
end
Expand Down

0 comments on commit 7ba8860

Please sign in to comment.