Fix error message when no package is defined (#836)
Closes #830 Signed-off-by: Etienne Millon <etienne@cryptosense.com>
This commit is contained in:
parent
4ab291d0b8
commit
e45e431588
|
@ -107,11 +107,10 @@ module Pkg = struct
|
|||
| [pkg] -> Ok pkg
|
||||
| [] ->
|
||||
Error
|
||||
"The current project (%S declared in defines no packages.\n\
|
||||
What do you want me to do with this (install ...) stanzas?.\n\
|
||||
You need to add a <package>.opam file at the root \
|
||||
of your project so that\n\
|
||||
I know that you want to install things as part of package <package>."
|
||||
"The current project defines some public elements, \
|
||||
but no opam packages are defined.\n\
|
||||
Please add a <package>.opam file at the project root \
|
||||
so that these elements are installed into it."
|
||||
| _ :: _ :: _ ->
|
||||
Error
|
||||
(sprintf
|
||||
|
|
Loading…
Reference in New Issue