diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-23 09:21:35 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-23 09:21:35 -0500 |
commit | 657a1bf52e4de27d3d302de707fdd53fa3d0632e (patch) | |
tree | 5724696bc29083a23f05174e3daf669b065426de /src/rebar_fetch.erl | |
parent | 725e2e9d255c7c2f8c680f60eb1b82284d55a333 (diff) | |
parent | dae1b4cc827edbe805c74ae4abcff7ad5571f569 (diff) |
Merge pull request #742 from tsloughter/pkg_check
improve error messages for packages by checking its existance before fetch
Diffstat (limited to 'src/rebar_fetch.erl')
-rw-r--r-- | src/rebar_fetch.erl | 2 |
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}) -> |