Patch for ticket 2534 (Improve MgFileIoException message quality)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Patch for ticket 2534 (Improve MgFileIoException message quality)

Jackie Ng
Hi All,

I've attached a patch for ticket 2534

http://trac.osgeo.org/mapguide/ticket/2534 

This patch adds greater context for certain cases where an MgFileIoException is thrown by also including the errno and its strerror()'d string description in the message description. A new MG_FILE_IO_EXCEPTION_ADD_ERRNO() macro is included to conveniently add such values before throwing the MgFileIoException

Please review. Thanks

- Jackie