Skip to content

Commit

Permalink
Fix #32:Query insider trading from TI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
topdna committed Aug 8, 2015
1 parent 2f3a09b commit 90ed9e4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/insider.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,14 @@ let queryMiscInsider = function(){
.resolve()
.then(getQueryMiscOption)
.then(queryMiscInsiderAsync)
.then(() => { console.log('\n'); }); // Just a placeholder here.
.then(() => { console.log('\n'); }) // Just a placeholder here.
.catch((e) => {
if(e.code === 'ETIMEDOUT' || e.code === 'ESOCKETTIMEDOUT'){
console.error(MSG.SYSTEM_BUSY.error);
return false;
}
console.error('Error occurred:', e);
});
};

exports.Insider = {
Expand Down

0 comments on commit 90ed9e4

Please sign in to comment.