summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_mnesia.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index 99e058cb2a..d6a5f3cbac 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -239,14 +239,15 @@ check_schema_integrity() ->
{_, TabDef} = proplists:lookup(Tab, TabDefs),
{_, ExpAttrs} = proplists:lookup(attributes, TabDef),
Attrs = mnesia:table_info(Tab, attributes),
- sets:is_subset(sets:from_list(ExpAttrs), sets:from_list(Attrs))
+ sets:is_subset(sets:from_list(ExpAttrs),
+ sets:from_list(Attrs))
end, table_names()) of
true -> ok;
false -> {error, database_tables_incompatible}
end
catch
- throw:Why ->
- {error, Why}
+ _:Reason ->
+ {error, Reason}
end.
%% The cluster node config file contains some or all of the disk nodes