Opened 13 years ago

Closed 13 years ago

#3733 closed defect (fixed)

Improve error reporting in msSaveImage()

Reported by: dmorissette Owned by: dmorissette
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: tbonfort

Description

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.

Change History (2)

comment:1 by dmorissette, 13 years ago

Owner: changed from sdlime to dmorissette
Status: newassigned

comment:2 by dmorissette, 13 years ago

Resolution: fixed
Status: assignedclosed

Fixed SVN trunk r11449. Improved error reporting and msDebug() output in msSaveImage().

Note: See TracTickets for help on using tickets.