Skip to content
Snippets Groups Projects
Commit ba8ef6a7 authored by Larry Shaffer's avatar Larry Shaffer Committed by Jack Nagel
Browse files

Add friendlier local file missing error


Closes Homebrew/homebrew#26481.

Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent ccf37d5a
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,12 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
had_incomplete_download = false
retry
else
raise CurlDownloadStrategyError, "Download failed: #{@url}"
if @url =~ %r[^file://]
msg = "File does not exist: #{@url.sub(%r[^file://], "")}"
else
msg = "Download failed: #{@url}"
end
raise CurlDownloadStrategyError, msg
end
end
ignore_interrupts { temporary_path.rename(tarball_path) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment