Skip to content

Commit d4c0ee0

Browse files
committed
update message
1 parent bb22c45 commit d4c0ee0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jscomp/build_tests/super_errors/expected/unbound_record_field.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
4 │ }
99
5 │
1010

11-
someUnknownField refers to a record field, but the record type it belongs to couldn't be found automatically.
11+
someUnknownField refers to a record field, but no corresponding record type is in scope.
1212

1313
If it's defined in another module or file, bring it into scope by:
1414
- Prefixing it with said module name: TheModule.someUnknownField

jscomp/ml/typetexp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ let report_error env ppf = function
910910
| Unbound_label lid ->
911911
(* modified *)
912912
Format.fprintf ppf "@[<v>\
913-
@{<info>%a@} refers to a record field, but the record type it belongs to couldn't be found automatically.@,@,\
913+
@{<info>%a@} refers to a record field, but no corresponding record type is in scope.@,@,\
914914
If it's defined in another module or file, bring it into scope by:@,\
915915
@[- Prefixing it with said module name:@ @{<info>TheModule.%a@}@]@,\
916916
@[- Or specifying its type:@ @{<info>let theValue: TheModule.theType = {%a: VALUE}@}@]\

0 commit comments

Comments
 (0)