Skip to content

Commit ef46e40

Browse files
Rik HuijzerKristofferC
Rik Huijzer
andauthored
Mention uuid too in error (#733)
Co-authored-by: Kristoffer Carlsson <kcarlsson89@gmail.com>
1 parent c87bdcd commit ef46e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PackageCompiler.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ function create_app(package_dir::String,
796796
get_compiler_cmd()
797797

798798
ctx = create_pkg_context(package_dir)
799-
ctx.env.pkg === nothing && error("expected package to have a `name`-entry")
799+
ctx.env.pkg === nothing && error("expected package to have a `name` and `uuid`")
800800
Pkg.instantiate(ctx, verbose=true, allow_autoprecomp = false)
801801

802802
if executables === nothing
@@ -987,7 +987,7 @@ function create_library(package_dir::String,
987987
end
988988

989989
ctx = create_pkg_context(package_dir)
990-
ctx.env.pkg === nothing && error("expected package to have a `name`-entry")
990+
ctx.env.pkg === nothing && error("expected package to have a `name` and `uuid`")
991991
Pkg.instantiate(ctx, verbose=true, allow_autoprecomp = false)
992992

993993
lib_name = something(lib_name, ctx.env.pkg.name)

0 commit comments

Comments
 (0)