diff options
| -rw-r--r-- | src/rabbit_vhost.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_vhost.erl b/src/rabbit_vhost.erl index fcf77bf942..8d013d4337 100644 --- a/src/rabbit_vhost.erl +++ b/src/rabbit_vhost.erl @@ -122,7 +122,7 @@ with(VHostPath, Thunk) -> end. %% Like with/2 but outside an Mnesia tx -assert(VHostPath) -> case rabbit_vhost:exists(VHostPath) of +assert(VHostPath) -> case exists(VHostPath) of true -> ok; false -> throw({error, {no_such_vhost, VHostPath}}) end. |
