summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_basic.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl
index eb304de54c..e218187568 100644
--- a/src/rabbit_basic.erl
+++ b/src/rabbit_basic.erl
@@ -237,6 +237,6 @@ parse_expiration(#'P_basic'{expiration = Expiration}) ->
B -> case string:to_integer(binary_to_list(B)) of
{error, no_integer} = E -> E;
{N, ""} -> {ok, N};
- {_, _ } -> {error, leftover_string}
+ {_, S } -> {error, {leftover_string, S}}
end
end.