File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/runtime/src/enhancements Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export function getDefaultModelMeta(): ModelMeta {
9
9
// eslint-disable-next-line @typescript-eslint/no-var-requires
10
10
return require ( '.zenstack/model-meta' ) . default ;
11
11
} catch {
12
- throw new Error ( 'Model meta cannot be loaded' ) ;
12
+ throw new Error ( 'Model meta cannot be loaded. Please make sure "zenstack generate" has been run. ' ) ;
13
13
}
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ function getDefaultPolicy(): PolicyDef {
69
69
// eslint-disable-next-line @typescript-eslint/no-var-requires
70
70
return require ( '.zenstack/policy' ) . default ;
71
71
} catch {
72
- throw new Error ( 'Policy definition cannot be loaded from default location' ) ;
72
+ throw new Error (
73
+ 'Policy definition cannot be loaded from default location. Please make sure "zenstack generate" has been run.'
74
+ ) ;
73
75
}
74
76
}
You can’t perform that action at this time.
0 commit comments