diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-03-17 09:22:03 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-03-17 09:22:03 +0000 |
commit | 349c24621ca359b5e6deac9d43ed8cefd0616152 (patch) | |
tree | c1e19f63bf088556b17e0783c2bcac5cc6c6a6aa | |
parent | 5a390fde517e6f8539f75199b357d064d8c11541 (diff) | |
download | rabbitmq-server-349c24621ca359b5e6deac9d43ed8cefd0616152.tar.gz |
If we have version_not_available, then it makes sense to have version_mismatch, not schema_mismatch
-rw-r--r-- | src/rabbit_mnesia.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl index c598fbb9..867da779 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -487,8 +487,7 @@ ensure_version_ok({ok, DiscVersion}) -> DesiredVersion = rabbit_version:desired(), case rabbit_version:'=~='(DesiredVersion, DiscVersion) of true -> ok; - false -> throw({error, {schema_mismatch, - DesiredVersion, DiscVersion}}) + false -> throw({error, {version_mismatch, DesiredVersion, DiscVersion}}) end; ensure_version_ok({error, _}) -> ok = rabbit_version:record_desired(). |