mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
commit
b56df832c6
@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -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`);
|
||||
|
||||
@ -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}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -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('/'))}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user