Handle but let Mosto know there was an error...


2013/4/10 Tomas Neme <notifications@github.com>

> In drivers/playlists/mongo-driver.js:
>
> > -                if( err ) {
> > -                    console.log(err);
> > -                } else if( sched ) {
> > -                    console.log("Processing sched:", sched);
> > -                    self.createPlaylist(sched, self.newPlaylistCallback);
> > -                } else {
> > -                    console.log('Done');
> > -                }
> > -            });
> > +        var boundaries = self.setBoundaries(from, to);
> > +        self.scheds.findItems({
> > +            start: { $lte: boundaries.to.unix()},
> > +            end: { $gte: boundaries.from.unix() }
> > +        }, function(err, scheds) {
> > +            if( err ) {
> > +                console.log(err);
>
> Also this would be a VERY weird error indeed. A database error of some
> kind, which I cannot fathom. Possibly a DB connection error, I should
> handle this here, I think
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/inaes-tic/mbc-mosto/pull/38/files#r3746537>
> .
>