Skip to content

Commit 4fecc4c

Browse files
committed
fix err message and test
1 parent b23c91c commit 4fecc4c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Transpilers', () => {
2727

2828
throw new Error('Compile should thrown an error');
2929
} catch (e: any) {
30-
expect(e.message).toMatch(/Duplicate property parsing test1 in main.js/);
30+
expect(e.message).toMatch(/Duplicate property parsing test1/);
3131
}
3232
});
3333

rust/check-dup-prop-transpiler-swc-plugin/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ impl TransformVisitor {
6969
PropName::Str(s) => s.span,
7070
_ => DUMMY_SP,
7171
};
72-
self.emit_error(span, &format!("Duplicate property <{}>", key_name));
72+
self.emit_error(
73+
span,
74+
&format!("Duplicate property parsing {}", key_name),
75+
);
7376
} else {
7477
unique.insert(key_name);
7578
}

0 commit comments

Comments
 (0)