Skip to content

Commit 2c2a93f

Browse files
authored
improve error message for erroring when dev package that is in sysimage (#3010)
1 parent 544bb89 commit 2c2a93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,12 +529,12 @@ end
529529
function error_if_in_sysimage(pkg::PackageSpec)
530530
RESPECT_SYSIMAGE_VERSIONS[] || return false
531531
if pkg.uuid === nothing
532-
@error "Expected package to have a set UUID, please file a bug report"
532+
@error "Expected package $(pkg.name) to have a set UUID, please file a bug report."
533533
return false
534534
end
535535
pkgid = Base.PkgId(pkg.uuid, pkg.name)
536536
if Base.in_sysimage(pkgid)
537-
pkgerror("tried to develop or add a package by URL that is already in the sysimage")
537+
pkgerror("Tried to develop or add by URL package $(pkgid) which is already in the sysimage, use `Pkg.respect_sysimage_versions(false)` to disable this check.")
538538
end
539539
end
540540

0 commit comments

Comments
 (0)