sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Enhancement: improve input file error messaging

Open lovell opened this issue 5 years ago • 0 comments

libvips and sharp currently only check an input file is missing (ENOENT) but could probably check for and differentiate on EACCES and perhaps other less common errors such as ELOOP etc.

https://github.com/libvips/libvips/blob/5df173dd15f5acc809690f0cfc427f4d077edbab/libvips/iofuncs/util.c#L1107-L1112

See https://github.com/lovell/sharp/issues/1919#issuecomment-549173298

(ACL stuff on Windows can be tricky so needs testing.)

lovell avatar Nov 04 '19 12:11 lovell