Fix error message when no package is defined (#836)

Closes #830

Signed-off-by: Etienne Millon <etienne@cryptosense.com>
This commit is contained in:
Etienne Millon 2018-06-01 15:25:35 +02:00 committed by Jérémie Dimino
parent 4ab291d0b8
commit e45e431588
1 changed files with 4 additions and 5 deletions

View File

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