Skip to content

Commit 69e3919

Browse files
committed
just output the filename without the full path for now
1 parent a36fada commit 69e3919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/tools_tests/src/expected/FormatDocstringsTestError.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Syntax error in code block in docstring
3-
/Users/zth/OSS/rescript-compiler/tests/tools_tests/src/docstrings-format/FormatDocstringsTestError.res:5:10-6:3
3+
FormatDocstringsTestError.res:5:10-6:3
44

55
3 │
66
4 │

tools/src/tools.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ module FormatDocstrings = struct
823823
let {Res_driver.parsetree = structure; comments; source; filename} =
824824
parser ~filename:path
825825
in
826-
826+
let filename = Filename.basename filename in
827827
let mapper = makeMapper ~displayFilename:filename in
828828
let astMapped = mapper.structure mapper structure in
829829
( Res_printer.print_implementation

0 commit comments

Comments
 (0)