Skip to content

Commit e5cfbd3

Browse files
committed
fix/sync error message
1 parent dba9699 commit e5cfbd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cubejs-schema-compiler/src/compiler/YamlCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class YamlCompiler {
277277
const pythonParser = new PythonParser(codeString);
278278
return pythonParser.transpileToJs();
279279
} 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}`);
281281
}
282282

283283
return t.nullLiteral();

packages/cubejs-schema-compiler/test/unit/yaml-schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('Yaml Schema Testing', () => {
129129

130130
throw new Error('compile must return an error');
131131
} catch (e: any) {
132-
expect(e.message).toContain('Can\'t parse python expression');
132+
expect(e.message).toContain('Failed to parse Python expression');
133133
}
134134
});
135135

0 commit comments

Comments
 (0)