Log incoming invalid attachment urls also

Same as previous commit but for incoming.

// FREEBIE
This commit is contained in:
lilia 2015-12-07 16:43:59 -08:00
parent fe7505c050
commit 7b1268e5f7
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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",