summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-09-10 17:47:19 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-09-10 17:47:19 +0100
commit1642d52183224568471c1210a1ee2b550b44dd6b (patch)
tree05779a2cb5629782f21870ce5985e8bff9d9274d
parent965dad72f59a767d9d6b1343eaea810a5f13c39e (diff)
downloadrabbitmq-server-1642d52183224568471c1210a1ee2b550b44dd6b.tar.gz
Quotes.
-rw-r--r--src/rabbit_misc.erl9
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