diff options
| author | Gabriele Santomaggio <gabriele.santomaggio@erlang-solutions.com> | 2017-01-27 21:59:43 +0100 |
|---|---|---|
| committer | Gabriele Santomaggio <gabriele.santomaggio@erlang-solutions.com> | 2017-01-27 21:59:43 +0100 |
| commit | 40cdcf956c602666b476061e5d1621ccbdf342c3 (patch) | |
| tree | 689ecf9e15db2706e5d692010608452d71643cd5 /src | |
| parent | d2be09c346b6745545496f45b54350bf616435c9 (diff) | |
| download | rabbitmq-server-git-40cdcf956c602666b476061e5d1621ccbdf342c3.tar.gz | |
Add Reason to error handler
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_vhost_limit.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_vhost_limit.erl b/src/rabbit_vhost_limit.erl index 11446d3f20..0181e300c3 100644 --- a/src/rabbit_vhost_limit.erl +++ b/src/rabbit_vhost_limit.erl @@ -137,8 +137,9 @@ parse_set(VHost, Defn, ActingUser) -> case rabbit_json:try_decode(Definition, [return_maps]) of {ok, Term} -> set(VHost, maps:to_list(Term), ActingUser); - error -> - {error_string, "JSON decoding error"} + {error, Reason} -> + {error_string, + rabbit_misc:format("JSON decoding error. Reason: ~ts", [Reason])} end. set(VHost, Defn, ActingUser) -> |
