Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/riak_kv_multi_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ start_backend_fun(Partition) ->
{[Backend | Backends],
Errors}
end
catch _:Error ->
catch _:Error:Stacktrace ->
{Backends,
[{Module, Error} | Errors]}
[{Module, {Error, Stacktrace}} | Errors]}
end
end.

Expand All @@ -213,8 +213,8 @@ start_backend(Name, Module, Partition, Config) ->
{Module, Reason}
end
catch
_:Reason1 ->
{Module, Reason1}
_:Error:Stacktrace ->
{Module, {Error, Stacktrace}}
end.

%% @doc Stop the backends
Expand Down
16 changes: 8 additions & 8 deletions src/riak_kv_multi_prefix_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,16 @@ start_backend_fun(Partition) ->
Module,
Partition,
ModConfig) of
{Module, Reason} ->
{Module, Error} ->
{Backends,
[{Module, Reason} | Errors]};
[{Module, Error} | Errors]};
Backend ->
{[Backend | Backends],
Errors}
end
catch _:Error ->
catch _:Reason:Stacktrace ->
{Backends,
[{Module, Error} | Errors]}
[{Module, {Reason, Stacktrace}} | Errors]}
end
end.

Expand All @@ -246,12 +246,12 @@ start_backend(Name, Module, Partition, Config) ->
case Module:start(Partition, Config) of
{ok, State} ->
{Name, Module, State};
{error, Reason} ->
{Module, Reason}
{error, Error} ->
{Module, Error}
end
catch
_:Reason1 ->
{Module, Reason1}
_:Reason:Stacktrace ->
{Module, {Reason, Stacktrace}}
end.

%% @doc Stop the backends
Expand Down
Loading