From fe7505c0507fc2c487301057cfc13c0c91867c38 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 7 Dec 2015 16:06:09 -0800 Subject: [PATCH] Log invalid attachment urls // 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 d76c14664..28f63b0fb 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -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", diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 053adb260..ba2e4fdf7 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -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",