diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2011-11-21 19:11:50 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-11-21 19:11:50 +0000 |
| commit | 73a31048797f70aafae8ab7ff7c1aea5efbb8a4f (patch) | |
| tree | f06f10c09498af71c40be664824360696a0e867b | |
| parent | e09582b32dc46269349124e835d23b546477a933 (diff) | |
| download | rabbitmq-server-git-73a31048797f70aafae8ab7ff7c1aea5efbb8a4f.tar.gz | |
cosmetic
| -rw-r--r-- | src/rabbit_misc.erl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index dcfbcaffb8..88192e8f5b 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -267,11 +267,12 @@ assert_args_equivalence1(Orig, New, Name, Key) -> val(undefined) -> "none"; val({Type, Value}) -> - Fmt = case is_binary(Value) of - true -> "the value '~s' of type '~s'"; - false -> "the value '~w' of type '~s'" - end, - lists:flatten(io_lib:format(Fmt, [Value, Type])). + ValFmt = case is_binary(Value) of + true -> "~s"; + false -> "~w" + end, + lists:flatten(io_lib:format("the value '" ++ ValFmt ++ "' of type '~s'", + [Value, Type])). %% Normally we'd call mnesia:dirty_read/1 here, but that is quite %% expensive due to general mnesia overheads (figuring out table types |
