Log invalid attachment urls

// FREEBIE
This commit is contained in:
lilia 2015-12-07 16:06:09 -08:00
parent 84fc2883c7
commit fe7505c050
2 changed files with 2 additions and 2 deletions

View file

@ -36516,7 +36516,7 @@ var TextSecureServer = (function() {
// (workaround for ids too large for Javascript numbers)
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 : "PUT",

View file

@ -333,7 +333,7 @@ var TextSecureServer = (function() {
// (workaround for ids too large for Javascript numbers)
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 : "PUT",