Skip to content

Commit

Permalink
MB-100 Don't crash if Min of Max is not an integer.
Browse files Browse the repository at this point in the history
The can also be an atom infinity.

Change-Id: I734c6fa6bf1c646651211bb85214a98ae9130162
Reviewed-on: http://review.couchbase.org/28551
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information
aartamonau authored and alk committed Aug 26, 2013
1 parent 3a4a1b9 commit 4e5765f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menelaus_web_xdc_replications.erl
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ parse_validate_by_type({int, Min, Max}, Str) ->
{ok, Parsed} ->
{ok, Parsed};
_Error ->
Msg = io_lib:format("The value must be an integer between ~b and ~b",
Msg = io_lib:format("The value must be an integer between ~p and ~p",
[Min, Max]),
iolist_to_binary(Msg)
end;
Expand Down

0 comments on commit 4e5765f

Please sign in to comment.