diff options
author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-09-08 12:39:33 +0100 |
---|---|---|
committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-09-08 12:39:33 +0100 |
commit | 0c4649b89582fc57c1c7cd50f4dbc7f38bea8ac0 (patch) | |
tree | 009565ae9121b190ae512ac308ffe1f55dfe2d8f /src/rabbit_basic.erl | |
parent | 87d441a54f7a781472ab979104c251ae208dfaa9 (diff) | |
download | rabbitmq-server-0c4649b89582fc57c1c7cd50f4dbc7f38bea8ac0.tar.gz |
a bit more informative error
Diffstat (limited to 'src/rabbit_basic.erl')
-rw-r--r-- | src/rabbit_basic.erl | 2 |
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. |