Remove check for .humanError property

This property is no longer used by any of our errors.

// FREEBIE
This commit is contained in:
lilia 2015-09-23 12:13:48 -07:00
parent 6547538458
commit 94e1c2d123
2 changed files with 4 additions and 8 deletions

View file

@ -39801,11 +39801,9 @@ window.textsecure.messaging = function() {
};
var registerError = function(number, message, error) {
if (error) {
if (error.humanError)
message = error.humanError;
} else
if (!error) {
error = new Error(message);
}
errors[errors.length] = { number: number, reason: message, error: error };
numberCompleted();
};

View file

@ -120,11 +120,9 @@ window.textsecure.messaging = function() {
};
var registerError = function(number, message, error) {
if (error) {
if (error.humanError)
message = error.humanError;
} else
if (!error) {
error = new Error(message);
}
errors[errors.length] = { number: number, reason: message, error: error };
numberCompleted();
};