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 | 46da2f463944758c4befbe3577fdea6348954db9 (patch) | |
tree | f06f10c09498af71c40be664824360696a0e867b | |
parent | 35101d1912870b2e1981369aa4b9e4ef9cf24d86 (diff) | |
download | rabbitmq-server-46da2f463944758c4befbe3577fdea6348954db9.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 dcfbcaff..88192e8f 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 |