Merge pull request #11995 from nemo0/change-unknow-to-unknown

Fix typo
This commit is contained in:
Alexandre BODIN 2022-01-05 09:15:24 +01:00 committed by GitHub
commit b56df832c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ const getDialectClass = client => {
case 'sqlite':
return require('./sqlite');
default:
throw new Error(`Unknow dialect ${client}`);
throw new Error(`Unknown dialect ${client}`);
}
};

View File

@ -390,7 +390,7 @@ const createJoinTable = (metadata, { attributeName, attribute, meta }) => {
const targetMeta = metadata.get(attribute.target);
if (!targetMeta) {
throw new Error(`Unknow target ${attribute.target}`);
throw new Error(`Unknown target ${attribute.target}`);
}
const joinTableName = _.snakeCase(`${meta.tableName}_${attributeName}_links`);

View File

@ -177,7 +177,7 @@ const getColumnType = attribute => {
return { type: 'boolean' };
}
default: {
throw new Error(`Unknow type ${attribute.type}`);
throw new Error(`Unknown type ${attribute.type}`);
}
}
};

View File

@ -143,7 +143,7 @@ async function checkTemplateContentsStructure(templateContentsPath) {
await checkPathContents(itemPath, nextParents);
} else {
throw Error(
`Illegal template structure, unknow file ${chalk.green(nextParents.join('/'))}`
`Illegal template structure, unknown file ${chalk.green(nextParents.join('/'))}`
);
}
}