yeesian / ArchGDAL.jl

A high level API for GDAL - Geospatial Data Abstraction Library
https://yeesian.github.io/ArchGDAL.jl/stable/
Other
142 stars 26 forks source link

add detailed error messages to @ogrerr #264

Closed mattwigway closed 3 years ago

mattwigway commented 3 years ago

The @ogrerr macro just printed whatever was passed to it in the source, which was often unhelpful (for instance, in setfeature!, "Failed to set feature." This change prints a human-readable message based on the OGR error code, in addition to the message passed to ogrerr.

mattwigway commented 3 years ago

Okay, addressed the style comment, and added a test that checks that errors are thrown, and that the error messages are correct. Let me know if there's anything else I can do!