You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2023/05/31 14:59:03 UTC

[tika] branch main updated: improve warning message in PipesClient

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 346f0277b improve warning message in PipesClient
346f0277b is described below

commit 346f0277b8c7a408491ada5860c6904e5e65f65b
Author: tballison <ta...@apache.org>
AuthorDate: Wed May 31 10:58:52 2023 -0400

    improve warning message in PipesClient
---
 tika-core/src/main/java/org/apache/tika/pipes/PipesClient.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tika-core/src/main/java/org/apache/tika/pipes/PipesClient.java b/tika-core/src/main/java/org/apache/tika/pipes/PipesClient.java
index 6068d519a..7a4e6eecf 100644
--- a/tika-core/src/main/java/org/apache/tika/pipes/PipesClient.java
+++ b/tika-core/src/main/java/org/apache/tika/pipes/PipesClient.java
@@ -31,6 +31,7 @@ import java.io.ObjectOutputStream;
 import java.nio.charset.StandardCharsets;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Locale;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
@@ -258,7 +259,9 @@ public class PipesClient implements Closeable {
         try {
             status = lookup(statusByte);
         } catch (IllegalArgumentException e) {
-            throw new IOException("problem reading response from server " + status);
+            throw new IOException("problem reading response from server "
+                    + String.format(Locale.US, "%02x", statusByte),
+                    e);
         }
 
         switch (status) {