Ticket #3733 (closed defect: fixed)
Improve error reporting in msSaveImage()
|Reported by:||dmorissette||Owned by:||dmorissette|
|Component:||MapServer C Library||Version:||svn-trunk (development)|
The current version of msSaveImage (6.0.0-beta1 / SVN trunk) fails silently if it is unable to open the output file (for instance if IMAGEPATH is not set or is not writable), and then MapServer ends up returning an empty template output without any error message. We should at a minimum call msSetError() in this case.
Actually, there is very little error reporting in this function so there may be other error situations that need to be better handled as well.