summaryrefslogtreecommitdiffstats
path: root/news/newsbot.js
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-03-18 21:47:13 +0100
committerlassulus <lassulus@googlemail.com>2014-03-18 21:47:13 +0100
commit8a40327409632f0de7a3167a1f935d1345725522 (patch)
treebfd467e42d20dce1c8b217c6376daa0c30577cca /news/newsbot.js
parent23e4a479b1da9b2923c4b98e0651722a8535f669 (diff)
newsbot.js: debug failed link
Diffstat (limited to 'news/newsbot.js')
-rw-r--r--news/newsbot.js7
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',