Skip to content

Commit efc01fc

Browse files
committed
Mention flow init when doesn't find .flowconfig
fixes facebook#19. I'm not sure what the policy is on multiline error messages, but this looked a little better on separate lines IMO. I tested the change locally. I'm also not sure if this extra message is needed once people become familiar with the tool (or look at the --help options). I found out pretty quickly I needed to run `flow init`, so I'm guessing others will as well. Feel free to ignore/close this pull request. I figured it was a ticket I could close out quickly (when looking at the issues).
1 parent 33155d2 commit efc01fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/commandUtils.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ let guess_root dir_or_file =
173173
match ClientArgs.guess_root ".flowconfig" (Path.mk_path dir) 50 with
174174
| Some root -> root
175175
| None -> Printf.fprintf stderr "Could not find a .flowconfig in %s or any \
176-
of its parent directories\n%!" dir; exit 2
176+
of its parent directories\nsee \"flow init --help\" for more info\n%!" dir; exit 2
177177

178178
(* convert 1,1 based line/column to 1,0 for internal use *)
179179
let convert_input_pos (line, column) =

0 commit comments

Comments
 (0)