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/LDAPCompare.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPCompare.java b/opends/src/server/org/opends/server/tools/LDAPCompare.java
index 4973675..4f6b766 100644
--- a/opends/src/server/org/opends/server/tools/LDAPCompare.java
+++ b/opends/src/server/org/opends/server/tools/LDAPCompare.java
@@ -548,7 +548,7 @@
try
{
String filePath = remainder.substring(1, remainder.length());
- attributeVal = LDAPToolUtils.readBytesFromFile(filePath);
+ attributeVal = LDAPToolUtils.readBytesFromFile(filePath, err);
}
catch (Exception e)
{
@@ -631,7 +631,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