hMatoba / piexifjs

Read and modify exif in client-side or server-side JavaScript.
MIT License
572 stars 119 forks source link

Throw Error objects instead of strings to preserve stack traces #62

Closed micahjon closed 5 years ago

micahjon commented 5 years ago

Convert all throw ("error name...") usages to throw new Error("error name..."), so that stack traces are preserved for debugging and tracking down errors.

See issue #43

hMatoba commented 5 years ago

Thanks!