Skip to content

Commit 8ea5696

Browse files
committed
tweak message
1 parent 2b81e1d commit 8ea5696

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/ext/warnings.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,9 @@ let message = function
311311
if can_be_automigrated then
312312
"\n\n\
313313
\ This can be automatically migrated by the ReScript migration tool. \
314-
Run `rescript-tools migrate-all` to run all automatic migrations \
315-
available in your project."
314+
Run `rescript-tools migrate-all <project-root>` to run all automatic \
315+
migrations available in your project, or `rescript-tools migrate \
316+
<file>` to migrate a single file."
316317
else ""
317318
| Fragile_match "" -> "this pattern-matching is fragile."
318319
| Fragile_match s ->

tests/build_tests/super_errors/expected/deprecated_with_automigration.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
deprecated: Js.Array2.map
99
Use `Array.map` instead.
1010

11-
This can be automatically migrated by the ReScript migration tool. Run `rescript-tools migrate-all` to run all automatic migrations available in your project.
11+
This can be automatically migrated by the ReScript migration tool. Run `rescript-tools migrate-all <project-root>` to run all automatic migrations available in your project, or `rescript-tools migrate <file>` to migrate a single file.

0 commit comments

Comments
 (0)