Skip to content

Commit

Permalink
chore: update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Jun 5, 2019
1 parent 7481974 commit 8609b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/generators/utils/add/questions.ts
Expand Up @@ -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";
};
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/ast-utils.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 8609b2b

Please sign in to comment.