Skip to content

Commit 5d1c1b1

Browse files
giordanostaticfloat
authored andcommitted
Improve error message about wrong source specification (#588)
1 parent c7e0b90 commit 5d1c1b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AutoBuild.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ function download_sources(sources::Vector; verbose::Bool = false)
350350
# If the given source is a local path that is a directory, package it up and insert it into our sources
351351
if typeof(sources[idx]) <: AbstractString
352352
if !isdir(sources[idx])
353-
error("Sources must either be a pair (url => hash) or a local directory")
353+
error("""Could not get source \"$(sources[idx])\".
354+
Sources must either be a pair (url => hash) or an existing local directory""")
354355
end
355356

356357
# Package up this directory and calculate its hash

0 commit comments

Comments
 (0)