Skip to content

Commit f295017

Browse files
cursoragentd-gubert
andcommitted
Refactor: Use path.basename for error filenames
Co-authored-by: douglas.gubert <douglas.gubert@rocket.chat>
1 parent 4235fd9 commit f295017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/TscBasedCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class TscBasedCompiler {
158158
if (m) {
159159
const [, full, ln, ch, msg] = m;
160160
return {
161-
filename: path.relative(this.sourcePath, full),
161+
filename: path.basename(full),
162162
line: +ln - 1,
163163
character: +ch - 1,
164164
lineText: "",

0 commit comments

Comments
 (0)