Skip to content

Commit

Permalink
Remove cache.ets file if it's broken
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Dec 25, 2016
1 parent a9c5cd7 commit 1aa5d55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hex/registry/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ defmodule Hex.Registry.Server do
:ets.new(@name, [])
{:error, reason} ->
Hex.Shell.error("Error opening ETS file #{path}: #{inspect reason}")
File.rm(path)
:ets.new(@name, [])
end
end
Expand Down

0 comments on commit 1aa5d55

Please sign in to comment.