summaryrefslogtreecommitdiff
path: root/src/rabbit_basic.erl
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-09-08 12:39:33 +0100
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-09-08 12:39:33 +0100
commit0c4649b89582fc57c1c7cd50f4dbc7f38bea8ac0 (patch)
tree009565ae9121b190ae512ac308ffe1f55dfe2d8f /src/rabbit_basic.erl
parent87d441a54f7a781472ab979104c251ae208dfaa9 (diff)
downloadrabbitmq-server-0c4649b89582fc57c1c7cd50f4dbc7f38bea8ac0.tar.gz
a bit more informative error
Diffstat (limited to 'src/rabbit_basic.erl')
-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 eb304de5..e2181875 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.