From 4bd5f0112c6c1b7213a4cc01672dd29d3391848a Mon Sep 17 00:00:00 2001 From: gek Date: Tue, 24 Oct 2023 14:01:03 +0200 Subject: [PATCH] fix: Grammar mistake in authentication error message --- lib/utils/error-message.js | 2 +- tap-snapshots/test/lib/utils/error-message.js.test.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/error-message.js b/lib/utils/error-message.js index a2cdb0aa48068..e3d6c3526936f 100644 --- a/lib/utils/error-message.js +++ b/lib/utils/error-message.js @@ -182,7 +182,7 @@ const errorMessage = (er, npm) => { ]) detail.push([ '', - ['To correct this please trying logging in again with:', ' npm login'].join('\n'), + ['To correct this please try logging in again with:', ' npm login'].join('\n'), ]) } else if (auth.includes('Basic')) { short.push(['', 'Incorrect or missing password.']) diff --git a/tap-snapshots/test/lib/utils/error-message.js.test.cjs b/tap-snapshots/test/lib/utils/error-message.js.test.cjs index 7c155cb16687f..13e3104af9302 100644 --- a/tap-snapshots/test/lib/utils/error-message.js.test.cjs +++ b/tap-snapshots/test/lib/utils/error-message.js.test.cjs @@ -1137,7 +1137,7 @@ Object { Array [ "", String( - To correct this please trying logging in again with: + To correct this please try logging in again with: npm login ), ],