#54 SaveFile does not set error on failure

open
nobody
None
5
2007-02-23
2007-02-23
Nicola Civran
No

I'm not sure if this is a bug, but it will be nice if TiXmlDocument::SaveFile() sets a specific error message on failure, something like that:

SetError( TIXML_ERROR_SAVING_FILE, 0, 0, TIXML_ENCODING_UNKNOWN );

Now, it simply returns false, leaving all error-related variables unchanged.

Discussion