Soft fail if there's an issue with lstu;

This commit is contained in:
Benjamin Bouvier 2016-11-01 14:01:26 +01:00
parent 0dc2a1c0b4
commit a9da941157

View File

@ -52,6 +52,7 @@ if (config.lstu) {
res ? "(status: " + res.statusCode + ")" : "(no response)", res ? "(status: " + res.statusCode + ")" : "(no response)",
'\nerror:', err, '\nerror:', err,
'\nfailure reason:', body.msg); '\nfailure reason:', body.msg);
callback(url);
} else { } else {
callback(body.short); callback(body.short);
} }