File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/cubejs-schema-compiler Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ export class YamlCompiler {
277
277
const pythonParser = new PythonParser ( codeString ) ;
278
278
return pythonParser . transpileToJs ( ) ;
279
279
} catch ( e : any ) {
280
- errorsReport . error ( `Can't parse python expression. Most likely this type of syntax isn't supported yet: ${ e . message || e } ` ) ;
280
+ errorsReport . error ( `Failed to parse Python expression. Most likely this type of syntax isn't supported yet: ${ e . message || e } ` ) ;
281
281
}
282
282
283
283
return t . nullLiteral ( ) ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ describe('Yaml Schema Testing', () => {
129
129
130
130
throw new Error ( 'compile must return an error' ) ;
131
131
} catch ( e : any ) {
132
- expect ( e . message ) . toContain ( 'Can\'t parse python expression' ) ;
132
+ expect ( e . message ) . toContain ( 'Failed to parse Python expression' ) ;
133
133
}
134
134
} ) ;
135
135
@@ -150,7 +150,7 @@ describe('Yaml Schema Testing', () => {
150
150
151
151
throw new Error ( 'compile must return an error' ) ;
152
152
} catch ( e : any ) {
153
- expect ( e . message ) . toContain ( 'name isn\'t defined for dimension: ' ) ;
153
+ expect ( e . message ) . toContain ( 'name isn\'t defined for dimension' ) ;
154
154
}
155
155
} ) ;
156
156
@@ -479,7 +479,7 @@ describe('Yaml Schema Testing', () => {
479
479
await compiler . compile ( ) ;
480
480
throw new Error ( 'compile must return an error' ) ;
481
481
} catch ( e : any ) {
482
- expect ( e . message ) . toContain ( 'dimension.granularitys must be defined as array' ) ;
482
+ expect ( e . message ) . toContain ( 'must be defined as array' ) ;
483
483
}
484
484
} ) ;
485
485
You can’t perform that action at this time.
0 commit comments