ebidel / filer.js

A wrapper library for the HTML5 Filesystem API what reuses UNIX commands (cp, mv, ls) for its API.
Other
1.49k stars 155 forks source link

Make all errors be passed to handler (if specified) #31

Closed rstuven closed 5 years ago

rstuven commented 11 years ago

Some errors (eg. those thrown by getEntry_) always result in "Uncaught Error:", even whether a handler or a try/catch is used for the filer.js API call. This patch ensures the error is thrown only if a handler has not been passed.