Remove check for .humanError property
This property is no longer used by any of our errors. // FREEBIE
This commit is contained in:
parent
6547538458
commit
94e1c2d123
2 changed files with 4 additions and 8 deletions
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue