We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66072c9 commit 1e49e86Copy full SHA for 1e49e86
packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts
@@ -736,7 +736,7 @@ export class DataSchemaCompiler {
736
if (e.toString().indexOf('SyntaxError') !== -1) {
737
const err = e as SyntaxErrorInterface;
738
const line = file.content.split('\n')[(err.loc?.start?.line || 1) - 1];
739
- const spaces = Array(err.loc?.start.column).fill(' ').join('');
+ const spaces = Array(err.loc?.start?.column).fill(' ').join('') || '';
740
errorsReport.error(`Syntax error during parsing: ${err.message}:\n${line}\n${spaces}^`, file.fileName);
741
} else {
742
errorsReport.error(e);
0 commit comments