summaryrefslogtreecommitdiff
path: root/src/rebar_fetch.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-08-22 21:49:58 -0500
committerTristan Sloughter <t@crashfast.com>2015-08-23 09:09:52 -0500
commitdae1b4cc827edbe805c74ae4abcff7ad5571f569 (patch)
tree19fd345af664721fbb20d907dd5411c884e8d9fd /src/rebar_fetch.erl
parent070e9d329bcbae9a7912b7cd84af0a97bc1c3c19 (diff)
improve error messages for packages by checking its existance before fetching
Diffstat (limited to 'src/rebar_fetch.erl')
-rw-r--r--src/rebar_fetch.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl
index 64c5380..b80c125 100644
--- a/src/rebar_fetch.erl
+++ b/src/rebar_fetch.erl
@@ -71,6 +71,8 @@ format_error({failed_extract, CachePath}) ->
io_lib:format("Failed to extract package: ~s", [CachePath]);
format_error({bad_etag, Source}) ->
io_lib:format("MD5 Checksum comparison failed for: ~s", [Source]);
+format_error({fetch_fail, Name, Vsn}) ->
+ io_lib:format("Failed to fetch and copy dep: ~s-~s", [Name, Vsn]);
format_error({fetch_fail, Source}) ->
io_lib:format("Failed to fetch and copy dep: ~p", [Source]);
format_error({bad_checksum, File}) ->