diff options
Diffstat (limited to 'src/rebar_fetch.erl')
-rw-r--r-- | src/rebar_fetch.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl index 96bbff1..0bb2270 100644 --- a/src/rebar_fetch.erl +++ b/src/rebar_fetch.erl @@ -30,7 +30,7 @@ download_source(AppDir, Source, State) -> true -> true; Error -> - throw(Error) + throw(?PRV_ERROR(Error)) catch C:T -> ?DEBUG("rebar_fetch exception ~p ~p ~p", [C, T, erlang:get_stacktrace()]), @@ -65,10 +65,12 @@ needs_update(AppDir, Source, State) -> true end. +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: ~p", [Source]); + io_lib:format("MD5 Checksum comparison failed for: ~s", [Source]); format_error({fetch_fail, Source}) -> - io_lib:format("Failed to fetch and copy dep: ~p", [Source]); + io_lib:format("Failed to fetch and copy dep: ~s", [Source]); format_error({bad_checksum, File}) -> io_lib:format("Checksum mismatch against tarball in ~s", [File]); format_error({bad_registry_checksum, File}) -> |