From 2ff954d2f82c395594d0d2df9a90b7a67f74e1ce Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 4 May 2015 14:54:09 -0700 Subject: [PATCH] Fix api.js --- js/key_worker.js | 14 +++++++------- js/libtextsecure.js | 14 +++++++------- libtextsecure/api.js | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/js/key_worker.js b/js/key_worker.js index 8ef9e9e7..525ea050 100644 --- a/js/key_worker.js +++ b/js/key_worker.js @@ -39156,26 +39156,26 @@ window.textsecure.api = function () { try { switch (code) { case -1: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Failed to connect to the server, please check your network connection."); case 413: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Rate limit exceeded, please try again later."); case 403: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Invalid code, please try again."); case 417: // TODO: This shouldn't be a thing?, but its in the API doc? - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Number already registered."); case 401: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Invalid authentication, most likely someone re-registered and invalidated our registration."); case 404: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Number is not registered with TextSecure."); default: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "The server rejected our query, please file a bug report."); } } catch (e) { diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 67fd94f5..fef6ee31 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39155,26 +39155,26 @@ window.textsecure.api = function () { try { switch (code) { case -1: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Failed to connect to the server, please check your network connection."); case 413: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Rate limit exceeded, please try again later."); case 403: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Invalid code, please try again."); case 417: // TODO: This shouldn't be a thing?, but its in the API doc? - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Number already registered."); case 401: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Invalid authentication, most likely someone re-registered and invalidated our registration."); case 404: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Number is not registered with TextSecure."); default: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "The server rejected our query, please file a bug report."); } } catch (e) { diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 1487367d..526aac62 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -128,26 +128,26 @@ window.textsecure.api = function () { try { switch (code) { case -1: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Failed to connect to the server, please check your network connection."); case 413: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Rate limit exceeded, please try again later."); case 403: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Invalid code, please try again."); case 417: // TODO: This shouldn't be a thing?, but its in the API doc? - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Number already registered."); case 401: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Invalid authentication, most likely someone re-registered and invalidated our registration."); case 404: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "Number is not registered with TextSecure."); default: - textsecure.throwHumanError(code, "HTTPError", + throwHumanError(code, "HTTPError", "The server rejected our query, please file a bug report."); } } catch (e) {