From: Lutz <lu...@us...> - 2004-05-17 18:18:52
|
On Sun, 2004-05-16 at 16:17, Joerg Hoh wrote: > I prefer a to replace at least some void-functions with (signed) int with a > standard return value of 1; if an error happens, they will return something > != 1 (normally < 1). (1) User clicks and empty information shows up. This is the case now. (2) User clicks and gets message: "An error occurred." This is your proposal. (3) User clicks and gets message: "Error xy occurred." Like EXIF_ERROR_CORRUPT_DATA, EXIF_ERROR_UNKNOWN_FORMAT (4) User clicks and gets message: "Error xy occurred at byte 4711 in EXIF data. The EXIF data in your image is broken. Please contact mailing list xyz." Implemented i.e. like void exif_data_load_data (..., ExifResult *result); where typedef struct { char *msg; ExifError err; } ExifResult; When doing error reporting, I'd like to do it in a userfriendly way, i.e. solution (4) or something better. Lutz |