Marak / translate.js

translate text from one language to another on node.js and the browser. 30+ languages supported, simple as cake.
311 stars 60 forks source link

Occasionally Google seems to return no data #8

Closed olauzon closed 13 years ago

olauzon commented 13 years ago

This patch fixed a lot of crashes I was getting as a result. Thanks for the module!

dylang commented 13 years ago

This is definitely better than the exception we currently get but what do you think about returning false or err so we know that something went wrong?

olauzon commented 13 years ago

Returning err would be better, I think.

Marak commented 13 years ago

Hrmm this one slipped through, will make sure to apply with latest round of fixes in next version.

Marak commented 13 years ago

I believe this is fixed now with a slightly different fix.