techfort / LokiJS

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

Catching save errors when using autosave #859

Closed sp00x closed 3 years ago

sp00x commented 4 years ago

Using saveDatabase you can catch errors as they are reported as an argument to the callback method, but with the constructor option autosave, there is no documented way of how to handle these.

However, I found that the constructor options object has an "autosaveCallback" property also, by checking the source code. Should this not be documented, or is not to be relied on being called?

stale[bot] commented 3 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.