Skip to content

Commit

Permalink
Make authority exception more informative.
Browse files Browse the repository at this point in the history
Co-Authored-By: Joris Van den Bossche <jorisvandenbossche@gmail.com>
  • Loading branch information
snowman2 and jorisvandenbossche authored May 11, 2019
1 parent 59b062f commit 197f923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproj/_crs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ cdef class Ellipsoid(Base):
PJ_CATEGORY_ELLIPSOID,
)
if ellipsoid_pj == NULL:
raise CRSError("Invalid authority")
raise CRSError("Invalid authority or code ({0}, {1})".format(auth_name, code))
return Ellipsoid.create(ellipsoid_pj)

@staticmethod
Expand Down

0 comments on commit 197f923

Please sign in to comment.