Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Return unauthorized error if encountered on any shard
Browse files Browse the repository at this point in the history
Hot upgrade friendly version
  • Loading branch information
rnewson committed Dec 1, 2014
1 parent d6b7e63 commit 8b323da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fabric_util.erl
Expand Up @@ -185,7 +185,7 @@ get_shard([#shard{node = Node, name = Name} | Rest], Opts, Timeout, Factor) ->
try
receive {Ref, {ok, {ok, Db}}} ->
{ok, Db};
{Ref, {ok, {unauthorized, _} = Error}} ->
{Ref, {'rexi_EXIT', {{unauthorized, _} = Error, _}}} ->
throw(Error);
{Ref, _Else} ->
get_shard(Rest, Opts, Timeout, Factor)
Expand Down

0 comments on commit 8b323da

Please sign in to comment.