Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Fixed Spelling. (#1984)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycasey authored and mleanos committed Dec 26, 2018
1 parent 9ecbbfa commit b83c511
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ logger.setupFileLogger = function setupFileLogger() {
} catch (err) {
if (process.env.NODE_ENV !== 'test') {
console.log();
console.log(chalk.red('An error has occured during the creation of the File transport logger.'));
console.log(chalk.red('An error has occurred during the creation of the File transport logger.'));
console.log(chalk.red(err));
console.log();
}
Expand Down
2 changes: 1 addition & 1 deletion modules/users/server/models/user.server.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ UserSchema.statics.generateRandomPassphrase = function () {

// Send the rejection back if the passphrase fails to pass the strength test
if (owasp.test(password).errors.length) {
reject(new Error('An unexpected problem occured while generating the random passphrase'));
reject(new Error('An unexpected problem occurred while generating the random passphrase'));
} else {
// resolve with the validated passphrase
resolve(password);
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade-users-sparse-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mongoose.connect(function (db) {

if (err) {
errors.push(err);
message = 'An error occured while removing the index "' + _indexToRemove + '".';
message = 'An error occurred while removing the index "' + _indexToRemove + '".';

if (err.message.indexOf('index not found with name') !== -1) {
message = 'Index "' + _indexToRemove + '" could not be found.' +
Expand Down

0 comments on commit b83c511

Please sign in to comment.