diff --git a/js/key_worker.js b/js/key_worker.js index 8ef9e9e78..525ea0509 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 67fd94f57..fef6ee31b 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 1487367d8..526aac625 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) {