From dc4fc6e5e768a3099d8ca617c713654d29eaa2f7 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 09 Oct 2006 22:53:54 +0000
Subject: [PATCH] Update the LDAP client tools to avoid explicit calls to System.err instead of using the defined print stream for error messages.
---
opends/src/server/org/opends/server/tools/LDAPSearch.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPSearch.java b/opends/src/server/org/opends/server/tools/LDAPSearch.java
index a0faa5f..29aa566 100644
--- a/opends/src/server/org/opends/server/tools/LDAPSearch.java
+++ b/opends/src/server/org/opends/server/tools/LDAPSearch.java
@@ -839,12 +839,12 @@
err.println(ex1.getMessage());
return 1;
}
- boolean val = searchOptions.setSearchScope(searchScope.getValue());
+ boolean val = searchOptions.setSearchScope(searchScope.getValue(), err);
if(val == false)
{
return 1;
}
- val = searchOptions.setDereferencePolicy(dereferencePolicy.getValue());
+ val = searchOptions.setDereferencePolicy(dereferencePolicy.getValue(), err);
if(val == false)
{
return 1;
@@ -853,7 +853,7 @@
if(controlStr.hasValue())
{
String ctrlString = controlStr.getValue();
- LDAPControl ctrl = LDAPToolUtils.getControl(ctrlString);
+ LDAPControl ctrl = LDAPToolUtils.getControl(ctrlString, err);
if(ctrl == null)
{
err.println("Invalid control specified:" + ctrlString);
--
Gitblit v1.10.0