File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
cubejs-schema-compiler/src/compiler Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ async function validate(options) {
21
21
} ) ;
22
22
} catch ( error : any ) {
23
23
console . log ( '❌ Cube Schema validation failed' ) ;
24
- displayError ( error . messages ) ;
24
+ displayError ( error . messages || error . message ) ;
25
25
return ;
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -546,8 +546,9 @@ export class DataSchemaCompiler {
546
546
// Alias "securityContext" with "security_context" (snake case version)
547
547
// to support snake case based data models
548
548
cloneCompileContextWithGetterAlias ( compileContext ) {
549
- const clone = R . clone ( compileContext || { } ) ;
550
- clone . security_context = compileContext . securityContext ;
549
+ const ctx = compileContext || { } ;
550
+ const clone = R . clone ( ctx ) ;
551
+ clone . security_context = ctx . securityContext ;
551
552
return clone ;
552
553
}
553
554
You can’t perform that action at this time.
0 commit comments