Fix #137: fix hint when all missing libs are optional
This commit is contained in:
parent
daeb40b087
commit
fff5763a53
|
@ -11,6 +11,8 @@
|
|||
- Add `${SCOPE_ROOT}` pointing to the root of the current scope, to
|
||||
fix some misuses of `${ROOT}`
|
||||
|
||||
- Fix useless hint when all missing dependencies are optional (#137)
|
||||
|
||||
1.0+beta10 (08/06/2017)
|
||||
-----------------------
|
||||
|
||||
|
|
12
bin/main.ml
12
bin/main.ml
|
@ -533,9 +533,17 @@ let external_lib_deps =
|
|||
in
|
||||
if String_map.is_empty missing then
|
||||
acc
|
||||
else begin
|
||||
else if String_map.is_empty missing then begin
|
||||
Format.eprintf
|
||||
"@{<error>Error@}: The following required libraries are missing \
|
||||
"@{<error>Error@}: The following libraries are missing \
|
||||
in the %s context:\n\
|
||||
%s@."
|
||||
context_name
|
||||
(format_external_libs missing);
|
||||
false
|
||||
end else begin
|
||||
Format.eprintf
|
||||
"@{<error>Error@}: The following libraries are missing \
|
||||
in the %s context:\n\
|
||||
%s\n\
|
||||
Hint: try: opam install %s@."
|
||||
|
|
Loading…
Reference in New Issue