diff options
-rw-r--r-- | news/newsbot.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/news/newsbot.js b/news/newsbot.js index 2d8b68f5..18b5f780 100644 --- a/news/newsbot.js +++ b/news/newsbot.js @@ -199,7 +199,12 @@ function run_command (methodname, params, callback) { function getShortLink (link, callback) { var form = new FormData() - form.append('uri', link) + try { + form.append('uri', link) + } catch (err) { + console.log('link:', link) + throw err + } var request = HTTP.request({ method: 'post', |