WRaster: Improve error messages to provide useful information to user
commitbcb53700d6b94501e1c01a6074029f913a1c6d4b
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 17 May 2021 14:32:15 +0000 (17 16:32 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 18 May 2021 16:49:17 +0000 (18 17:49 +0100)
tree9179dae8dcb3e52e6cde5289d7d0086cbabbd770
parente5f7ef23a62b6b491bb84f5f00b3adb0e5c5c427
WRaster: Improve error messages to provide useful information to user

The original error messages tended to be a bit sparse, now they try to be
a little bit more helpful, and translatable in user's language.

In xutil.c:122, took opportunity fix a problem because calling 'perror'
after other function which are likely to have changed the errno is likely
to provide a wrong error string.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/context.c
wrlib/load_ppm.c
wrlib/load_webp.c
wrlib/xutil.c