Permalink
Browse files

change error details

Change error details passed to callback when draw of particular
date does not exist. We were passing a moment back now we should
pass a native date object.
  • Loading branch information...
1 parent 860903c commit 0df7fd59140596bbef2bc0162afbee0c874b8aea @Devon-Olivier committed Jan 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lottoplus/nlcb.js
View
@@ -100,7 +100,7 @@ exports.createDriver = function createDriver(driverOptions){
_parseDrawHtml(html,function(error, draw){
if(error instanceof ERROR.NODRAW){
error.message = 'Draw does not exist';
- error.details = aMoment;
+ error.details = aMoment.toDate();
}
drawDateCallback(error, draw);
});

0 comments on commit 0df7fd5

Please sign in to comment.