From 8609b2bf9aeb2a6b3d505188bda34d9bfc34525f Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 5 Jun 2019 17:29:30 +0530 Subject: [PATCH] chore: update error message --- packages/generators/utils/add/questions.ts | 2 +- packages/utils/ast-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/generators/utils/add/questions.ts b/packages/generators/utils/add/questions.ts index 4fbb5be2c8f..a24d0bfe7a3 100644 --- a/packages/generators/utils/add/questions.ts +++ b/packages/generators/utils/add/questions.ts @@ -33,7 +33,7 @@ const mergeFileQuestionsFunction = (): Question[] => { if (/\.js$/.test(path)) { return true; } - return "Path doesn't corresponds to a javascript file"; + return "Path doesn't correspond to a javascript file"; } return "Invalid path provided"; }; diff --git a/packages/utils/ast-utils.ts b/packages/utils/ast-utils.ts index 46c3a9dee6a..f04a1061ce7 100644 --- a/packages/utils/ast-utils.ts +++ b/packages/utils/ast-utils.ts @@ -655,7 +655,7 @@ function parseMerge(j: JSCodeshift, ast: Node, value: string[], action: string): function addMergeImports(configIdentifier: string, configPath: string): void { if (typeof configIdentifier !== "string" || typeof configPath !== "string") { throw new Error( - `Both parameters should be string. recieved ${typeof configIdentifier}, ${typeof configPath}` + `Both parameters should be strings. recieved ${typeof configIdentifier}, ${typeof configPath}` ); } ast.find(j.Program).forEach(