summaryrefslogtreecommitdiff
path: root/src/rebar_packages.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_packages.erl')
-rw-r--r--src/rebar_packages.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_packages.erl b/src/rebar_packages.erl
index a260e47..c7bbfac 100644
--- a/src/rebar_packages.erl
+++ b/src/rebar_packages.erl
@@ -238,7 +238,11 @@ update_package(Name, RepoConfig=#{name := Repo}, State) ->
_ = insert_releases(Name, Releases, Repo, ?PACKAGE_TABLE),
{ok, RegistryDir} = rebar_packages:registry_dir(State),
PackageIndex = filename:join(RegistryDir, ?INDEX_FILE),
- ok = ets:tab2file(?PACKAGE_TABLE, PackageIndex);
+ case ets:tab2file(?PACKAGE_TABLE, PackageIndex) of
+ ok -> ok;
+ {error, Error} ->
+ ?WARN("Failed to update package index at ~p: ~p", [PackageIndex, Error])
+ end;
{error, unverified} ->
?WARN(unverified_repo_message(), [Repo]),
fail;