summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--src/rabbit_misc.erl6
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 00bfd62946..0693035ff9 100644
--- a/Makefile
+++ b/Makefile
@@ -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])).