Mercurial > repos > public > sbplib_julia
diff src/Grids/geometry.jl @ 1982:486b3c6f919e feature/grids/geometry_functions
Throw better error type for transfinite interpolation check
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Feb 2025 22:50:26 +0100 |
parents | db3383581b9f |
children | 730c9848ad0b |
line wrap: on
line diff
--- a/src/Grids/geometry.jl Wed Feb 26 22:44:10 2025 +0100 +++ b/src/Grids/geometry.jl Wed Feb 26 22:50:26 2025 +0100 @@ -191,7 +191,7 @@ if check_transfiniteinterpolation(Bool, s) return nothing else - error("The end of each curve in the transfinite interpolation should be the same as the beginning of the next curve.") + throw(ArgumentError("The end of each curve in the transfinite interpolation should be the same as the beginning of the next curve.")) end end