Fix #137: fix hint when all missing libs are optional

This commit is contained in:
Jeremie Dimino 2017-06-09 14:49:08 +01:00
parent daeb40b087
commit fff5763a53
2 changed files with 12 additions and 2 deletions

View File

@ -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)
-----------------------

View File

@ -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@."