webcss / angular-indexedDB

An angularjs serviceprovider to utilize indexedDB with angular
149 stars 99 forks source link

Errors are not caught in many places #19

Open schmod opened 10 years ago

schmod commented 10 years ago

Throughout the library, there are several instances of req.onsuccess = req.onerror, which results in promises resolving when they should have been rejected.

Additionally, many methods within the IndexedDB API can potentially raise DOMExceptions, which are not caught at all by angular-indexedDB. These exceptions can be particularly problematic, because they are often raised within then() blocks inside the library (which makes them impossible to catch from the outside).