mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 08:52:15 -05:00
added error handling in lawnchair dao
This commit is contained in:
parent
bdab0e19c1
commit
5c1b89dfc9
@ -6,7 +6,11 @@ app.dao.LawnchairDAO = function(window) {
|
||||
|
||||
var db = new Lawnchair({
|
||||
name: 'data-store'
|
||||
}, function() {});
|
||||
}, function(lc) {
|
||||
if (!lc) {
|
||||
throw new Error('Lawnchair init failed!');
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Create or update an object
|
||||
|
Loading…
Reference in New Issue
Block a user