From 28935cc25d99605a9688329193df9c734ada71d0 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 9 Mar 2018 17:13:00 -0700 Subject: [PATCH] updated copy --- errors.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/errors.js b/errors.js index a4cd28e08..65f0a0d2b 100644 --- a/errors.js +++ b/errors.js @@ -1,6 +1,6 @@ /** * ExtendableError provides a base Error class to source off of that does not - * break the inheritence chain. + * break the inheritance chain. */ class ExtendableError { constructor(message = null) { @@ -129,7 +129,7 @@ class ErrAssetCommentingClosed extends APIError { class ErrAuthentication extends APIError { constructor(message = null) { super( - 'authentication error occured', + 'authentication error occurred', { status: 401, translation_key: 'AUTHENTICATION', @@ -160,7 +160,7 @@ class ErrAlreadyExists extends APIError { } // ErrContainsProfanity is returned in the event that the middleware detects -// profanity/wordlisted words in the payload. +// profanity/banned/suspect words in the payload. const ErrContainsProfanity = new APIError( 'This username contains elements which are not permitted in our community. If you think this is in error, please contact us or try again.', { @@ -189,7 +189,7 @@ const ErrNotAuthorized = new APIError('not authorized', { // ErrSettingsNotInit is returned when the settings are required but not // initialized. const ErrSettingsNotInit = new Error( - 'Talk is currently not setup. Please proceed to our webinstaller at $ROOT_URL/admin/install or run ./bin/cli-setup. Visit https://docs.coralproject.net/talk/ for more information on installation and configuration instructions' + 'Talk is currently not setup. Please proceed to our web installer at $ROOT_URL/admin/install or run ./bin/cli-setup. Visit https://docs.coralproject.net/talk/ for more information on installation and configuration instructions' ); // ErrSettingsInit is returned when the setup endpoint is hit and we are already @@ -254,7 +254,7 @@ const ErrNotVerified = new APIError( } ); -const ErrMaxRateLimit = new APIError('Rate limit exeeded', { +const ErrMaxRateLimit = new APIError('Rate limit exceeded', { translation_key: 'RATE_LIMIT_EXCEEDED', status: 429, });