mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
chore: sync runner error message
This commit is contained in:
parent
d956c90e91
commit
3f84893f78
@ -20,7 +20,9 @@ export class SyncRunner {
|
|||||||
|
|
||||||
if (!parents) {
|
if (!parents) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Inherit model ${inheritedCollection.name} can't be created without parents, parents option is ${lodash
|
`Inherit model ${
|
||||||
|
inheritedCollection.name
|
||||||
|
} can't be created without parents, parents option is ${lodash
|
||||||
.castArray(inheritedCollection.options.inherits)
|
.castArray(inheritedCollection.options.inherits)
|
||||||
.join(', ')}`,
|
.join(', ')}`,
|
||||||
);
|
);
|
||||||
@ -58,7 +60,7 @@ export class SyncRunner {
|
|||||||
const columnDefault = sequenceNameResult[0][0]['column_default'];
|
const columnDefault = sequenceNameResult[0][0]['column_default'];
|
||||||
|
|
||||||
if (!columnDefault) {
|
if (!columnDefault) {
|
||||||
throw new Error(`Can't find sequence name of ${parent}`);
|
throw new Error(`Can't find sequence name of parent collection ${parent.options.name}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const regex = new RegExp(/nextval\('(.*)'::regclass\)/);
|
const regex = new RegExp(/nextval\('(.*)'::regclass\)/);
|
||||||
|
Loading…
Reference in New Issue
Block a user