torch / image

An Image toolbox for Torch.
Other
209 stars 141 forks source link

Return a sensible error on unknown file type #192

Closed chunyang closed 8 years ago

chunyang commented 8 years ago

Provide a more detailed error message when the image file type cannot be determined via magic or extension. Previously the error message said

attempt to concatenate local 'ext' (a nil value)

This change replaces it with

unable to determine image type for file: <filename>
soumith commented 8 years ago

Thank you!