chore: improve error message

This commit is contained in:
Jamie Howard 2022-10-04 16:39:43 +01:00
parent 9270ee9f27
commit b81d7bec39

View File

@ -18,7 +18,7 @@ class Metadata extends Map {
for (const meta of this.values()) {
if (seenTables.get(meta.tableName)) {
throw new Error(
`DB table ${meta.tableName} already exists. Change the collectionName of this content type.\n More info here: https://docs.strapi.io/developer-docs/latest/development/backend-customization/`
`DB table "${meta.tableName}" already exists. Change the collectionName of the related content type.`
);
}
seenTables.set(meta.tableName, true);