Skip to content

Commit

Permalink
don't say we found multiple certificates when none was found
Browse files Browse the repository at this point in the history
Change-Id: I74b3e5a297d3218fd78d23cf6ef7e2e418aac48c
Reviewed-on: http://review.couchbase.org/32375
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
  • Loading branch information
Aliaksey Kandratsenka authored and aartamonau committed Jan 15, 2014
1 parent 3024ea5 commit a1d97ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menelaus_web_remote_clusters.erl
Expand Up @@ -166,7 +166,7 @@ validate_remote_cluster_params(Params, ExistingClusters) ->
CertBin = list_to_binary(Cert),
OkCert = case (catch ns_server_cert:validate_cert(CertBin)) of
{ok, [_]} -> true;
{ok, _} -> <<"found multiple certificates instead">>;
{ok, [_|_]} -> <<"found multiple certificates instead">>;
{error, non_cert_entries, _} ->
<<"found non-certificate entries">>;
_ ->
Expand Down

0 comments on commit a1d97ad

Please sign in to comment.