Changed unknow to unknown

This commit is contained in:
nemo0 2021-12-22 19:59:03 +05:30
parent d9b540aaed
commit 2c931634f0
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('/'))}`
);
}
}