From ad20a146621b92e4b540f0eefd2ce77a722ee330 Mon Sep 17 00:00:00 2001 From: Bruce Date: Fri, 26 Jan 2024 14:07:51 +0300 Subject: [PATCH] Fix grammatical error in error message --- lib/commands/run/index.ts | 2 +- test/unit/commands/run/index-test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands/run/index.ts b/lib/commands/run/index.ts index 16f3ee3c..8974421c 100644 --- a/lib/commands/run/index.ts +++ b/lib/commands/run/index.ts @@ -45,7 +45,7 @@ export default class RunCommand extends AbstractCommand { new ResourcesConfig(path.join(process.cwd(), CONSTANTS.FILE_PATH.ASK_RESOURCES_JSON_CONFIG)); skillId = ResourcesConfig.getInstance().getSkillId(profile); if (!stringUtils.isNonBlankString(skillId)) { - throw new CliError(`Failed to obtain skill-id for the given profile - ${profile}` + ". Please deploy you skill project first."); + throw new CliError(`Failed to obtain skill-id for the given profile - ${profile}` + ". Please deploy your skill project first."); } } catch (error) { Messenger.getInstance().error(error); diff --git a/test/unit/commands/run/index-test.ts b/test/unit/commands/run/index-test.ts index ffe993ef..c41fb30f 100644 --- a/test/unit/commands/run/index-test.ts +++ b/test/unit/commands/run/index-test.ts @@ -78,7 +78,7 @@ describe("Commands Run test - command class test", () => { sinon.stub(path, "join").returns(INVALID_RESOURCES_CONFIG_JSON_PATH); // call await expect(instance.handle(TEST_CMD_WITH_VALUES)).rejectedWith( - `Failed to obtain skill-id for the given profile - ${TEST_PROFILE}. Please deploy you skill project first.`, + `Failed to obtain skill-id for the given profile - ${TEST_PROFILE}. Please deploy your skill project first.`, ); });