diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | src/rabbit_misc.erl | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -314,3 +314,4 @@ endif ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" "" -include $(DEPS_FILE) endif + diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 80c8f4c046..7d9167973d 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])). |
