techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.75k stars 481 forks source link

capture async errors #827

Closed DaveWelling closed 4 years ago

DaveWelling commented 4 years ago

Currently, any error inside the success handler for the indexeddb key lookup results in the database not loading, but the loadDatabase method (or autoload callback) returning successfully (so that the consuming method thinks everything is ok). With these changes, I just tried to pass the error up through the callbacks, so I will know something is wrong when loadDatabase fails.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

DaveWelling commented 4 years ago

Are contributions unwelcome or ...?