Move throwHumanError to api.js

It is only used there.
This commit is contained in:
lilia 2015-04-30 12:13:04 -07:00
parent 36b1e87214
commit 89c24cd2fa
4 changed files with 27 additions and 24 deletions

View file

@ -123,13 +123,6 @@ window.textsecure.utils = function() {
return self;
}();
window.textsecure.throwHumanError = function(error, type, humanError) {
var e = new Error(error);
if (type !== undefined)
e.name = type;
e.humanError = humanError;
throw e;
}
var handleAttachment = function(attachment) {
function getAttachment() {