summaryrefslogtreecommitdiff
path: root/src/rabbit_misc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_misc.erl')
-rw-r--r--src/rabbit_misc.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 80c8f4c0..7d916797 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -248,9 +248,9 @@ assert_args_equivalence1(Orig, New, Name, Key) ->
val(undefined) ->
"none";
val({Type, Value}) ->
- Fmt = case Value of
- _ when is_binary (Value) -> "a value '~s' of type '~s'";
- _ -> "a value '~w' of type '~s'"
+ 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])).