diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-09-10 17:47:19 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-09-10 17:47:19 +0100 |
commit | 1642d52183224568471c1210a1ee2b550b44dd6b (patch) | |
tree | 05779a2cb5629782f21870ce5985e8bff9d9274d | |
parent | 965dad72f59a767d9d6b1343eaea810a5f13c39e (diff) | |
download | rabbitmq-server-1642d52183224568471c1210a1ee2b550b44dd6b.tar.gz |
Quotes.
-rw-r--r-- | src/rabbit_misc.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index bd8ba42e..58d53611 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -351,11 +351,10 @@ val({Type, Value}) -> end, format("the value '" ++ ValFmt ++ "' of type '~s'", [Value, Type]); val(Value) -> - ValFmt = case is_binary(Value) of - true -> "~s"; - false -> "~w" - end, - format(ValFmt, [Value]). + format(case is_binary(Value) of + true -> "'~s'"; + false -> "'~w'" + end, [Value]). %% Normally we'd call mnesia:dirty_read/1 here, but that is quite %% expensive due to general mnesia overheads (figuring out table types |