mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Log invalid attachment urls
// FREEBIE
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user