mirror of
https://github.com/moparisthebest/mail
synced 2025-02-16 15:10:10 -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({
|
var db = new Lawnchair({
|
||||||
name: 'data-store'
|
name: 'data-store'
|
||||||
}, function() {});
|
}, function(lc) {
|
||||||
|
if (!lc) {
|
||||||
|
throw new Error('Lawnchair init failed!');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update an object
|
* Create or update an object
|
||||||
|
Loading…
Reference in New Issue
Block a user