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 | [pkg] -> Ok pkg
| [] -> | [] ->
Error Error
"The current project (%S declared in defines no packages.\n\ "The current project defines some public elements, \
What do you want me to do with this (install ...) stanzas?.\n\ but no opam packages are defined.\n\
You need to add a <package>.opam file at the root \ Please add a <package>.opam file at the project root \
of your project so that\n\ so that these elements are installed into it."
I know that you want to install things as part of package <package>."
| _ :: _ :: _ -> | _ :: _ :: _ ->
Error Error
(sprintf (sprintf