[gdal-dev] Towards more user-friendly error messages

2009-06-17 Thread Ari Jolma
A colleague of mine is beginning to use GDAL via the Perl bindings (the bindings are not the main issue however). He makes quite simple errors, but is perplexed when he gets rather scary looking / uninformative error messages. For example he forgot to open Shapefile with update turned on (it is

Re: [gdal-dev] Towards more user-friendly error messages

2009-06-17 Thread Even Rouault
Ari, It's funny because I myself got caught by the same issue a few days ago. So I've just improved error reporting on shapefile layer for SetFeature(), CreateFeature() and DeleteFeature() operations in trunk (r17255). It was trivial in that case as the OGRShapeLayer object has a flag to