Skip to content

Commit e6217b6

Browse files
authored
warn early about incorrect sysimage_path (#822)
This possible error happens late in the build, so this change will make it error earlier for the user. Should improve experience a bit.
1 parent 9d89594 commit e6217b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PackageCompiler.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,10 @@ function create_sysimage(packages::Union{Nothing, Symbol, Vector{String}, Vector
509509
# is found, we throw an error immediately, instead of making the user wait a while before the error is thrown.
510510
get_compiler_cmd()
511511

512+
if isdir(sysimage_path)
513+
error("The provided sysimage_path is a directory: $(sysimage_path). Please specify a full path including the sysimage filename.")
514+
end
515+
512516
if filter_stdlibs && incremental
513517
error("must use `incremental=false` to use `filter_stdlibs=true`")
514518
end

0 commit comments

Comments
 (0)