Skip to content

Commit 8609b2b

Browse files
committed
chore: update error message
1 parent 7481974 commit 8609b2b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/generators/utils/add/questions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const mergeFileQuestionsFunction = (): Question[] => {
3333
if (/\.js$/.test(path)) {
3434
return true;
3535
}
36-
return "Path doesn't corresponds to a javascript file";
36+
return "Path doesn't correspond to a javascript file";
3737
}
3838
return "Invalid path provided";
3939
};

packages/utils/ast-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ function parseMerge(j: JSCodeshift, ast: Node, value: string[], action: string):
655655
function addMergeImports(configIdentifier: string, configPath: string): void {
656656
if (typeof configIdentifier !== "string" || typeof configPath !== "string") {
657657
throw new Error(
658-
`Both parameters should be string. recieved ${typeof configIdentifier}, ${typeof configPath}`
658+
`Both parameters should be strings. recieved ${typeof configIdentifier}, ${typeof configPath}`
659659
);
660660
}
661661
ast.find(j.Program).forEach(

0 commit comments

Comments
 (0)