Skip to content

Commit 6943dbd

Browse files
Fix rescript-lang#4006: Misleading error message.
1 parent ad092f5 commit 6943dbd

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

jscomp/build_tests/super_errors/expected/syntaxErrors1.re.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Error: Syntax error
55
/.../fixtures/syntaxErrors1.re
66

77
There's been an error running Reason's parser on a file.
8-
The error location should be slightly above this message.
8+
If the message doesn't help, check for errors slightly above.
99
Please file an issue on github.com/facebook/reason. Thanks!

jscomp/build_tests/super_errors/expected/syntaxErrors2.re.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Error: Syntax error
55
/.../fixtures/syntaxErrors2.re
66

77
There's been an error running Reason's parser on a file.
8-
The error location should be slightly above this message.
8+
If the message doesn't help, check for errors slightly above.
99
Please file an issue on github.com/facebook/reason. Thanks!

jscomp/build_tests/super_errors/expected/syntaxErrors3.re.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Error: Syntax error
55
/.../fixtures/syntaxErrors3.re
66

77
There's been an error running Reason's parser on a file.
8-
The error location should be slightly above this message.
8+
If the message doesn't help, check for errors slightly above.
99
Please file an issue on github.com/facebook/reason. Thanks!

jscomp/build_tests/super_errors/expected/syntaxErrors5.re.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Error: This '(' might be unmatched
77
/.../fixtures/syntaxErrors5.re
88

99
There's been an error running Reason's parser on a file.
10-
The error location should be slightly above this message.
10+
If the message doesn't help, check for errors slightly above.
1111
Please file an issue on github.com/facebook/reason. Thanks!

jscomp/super_errors/super_pparse.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let fprintf = Format.fprintf
55
let report_error ppf () =
66
fprintf ppf
77
"@[<v>@{<info>There's been an error running Reason's parser on a file.@}@,\
8-
The error location should be slightly above this message.@,\
8+
If the message doesn't help, check for errors slightly above.@,\
99
@[Please file an issue on@ github.com/facebook/reason.@ Thanks!@]@]"
1010

1111

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132430,7 +132430,7 @@ let fprintf = Format.fprintf
132430132430
let report_error ppf () =
132431132431
fprintf ppf
132432132432
"@[<v>@{<info>There's been an error running Reason's parser on a file.@}@,\
132433-
The error location should be slightly above this message.@,\
132433+
If the message doesn't help, check for errors slightly above.@,\
132434132434
@[Please file an issue on@ github.com/facebook/reason.@ Thanks!@]@]"
132435132435

132436132436

lib/4.06.1/whole_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138817,7 +138817,7 @@ let fprintf = Format.fprintf
138817138817
let report_error ppf () =
138818138818
fprintf ppf
138819138819
"@[<v>@{<info>There's been an error running Reason's parser on a file.@}@,\
138820-
The error location should be slightly above this message.@,\
138820+
If the message doesn't help, check for errors slightly above.@,\
138821138821
@[Please file an issue on@ github.com/facebook/reason.@ Thanks!@]@]"
138822138822

138823138823

0 commit comments

Comments
 (0)