From 7b1268e5f760f4dbef3185ccea9152e93670c45e Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 7 Dec 2015 16:43:59 -0800 Subject: [PATCH] Log incoming invalid attachment urls also Same as previous commit but for incoming. // FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 28f63b0fb3ca..996ba49119be 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -36498,7 +36498,7 @@ var TextSecureServer = (function() { }).then(function(response) { var match = response.location.match(this.attachment_id_regex); if (!match) { - throw new Error('Received invalid attachment url'); + throw new Error('Received invalid attachment url: ' + response.location); } return ajax(response.location, { type : "GET", diff --git a/libtextsecure/api.js b/libtextsecure/api.js index ba2e4fdf7b3f..8ae2e3b85214 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -315,7 +315,7 @@ var TextSecureServer = (function() { }).then(function(response) { var match = response.location.match(this.attachment_id_regex); if (!match) { - throw new Error('Received invalid attachment url'); + throw new Error('Received invalid attachment url: ' + response.location); } return ajax(response.location, { type : "GET",