Skip to content

Commit

Permalink
fix error message in GeoInterface.convert (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-s-gardner authored Oct 10, 2023
1 parent 4499605 commit ff928ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geo_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ end

function GI.convert(
t::Type{<:AbstractGeometry},
::AbstractGeometryTrait,
tr::AbstractGeometryTrait,
geom;
context = nothing,
)
error(
"Cannot convert an object of $(of(geom)) with the $(of()) trait to a $t (yet). Please report an issue.",
"Cannot convert an object of $(typeof(geom)) with the $(typeof(tr)) trait to a $t (yet). Please report an issue.",
)
end

Expand Down

0 comments on commit ff928ea

Please sign in to comment.