You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by dm...@apache.org on 2020/12/05 23:59:38 UTC

[tika] branch branch_1x updated: Updated exception to log the passed prefix in error message

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

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


The following commit(s) were added to refs/heads/branch_1x by this push:
     new ded08bc  Updated exception to log the passed prefix in error message
ded08bc is described below

commit ded08bc18bc88a87d145162d15a4a5aec79b6314
Author: David Meikle <dm...@apache.org>
AuthorDate: Sat Dec 5 23:36:03 2020 +0000

    Updated exception to log the passed prefix in error message
---
 .../src/main/java/org/apache/tika/server/resource/TikaResource.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tika-server/src/main/java/org/apache/tika/server/resource/TikaResource.java b/tika-server/src/main/java/org/apache/tika/server/resource/TikaResource.java
index c607659..973fa82 100644
--- a/tika-server/src/main/java/org/apache/tika/server/resource/TikaResource.java
+++ b/tika-server/src/main/java/org/apache/tika/server/resource/TikaResource.java
@@ -271,7 +271,7 @@ public class TikaResource {
             throw new WebApplicationException(
                     String.format(Locale.ROOT,
                     "%s is an invalid %s header",
-                            key, X_TIKA_OCR_HEADER_PREFIX), Response.Status.BAD_REQUEST);
+                            key, prefix), Response.Status.BAD_REQUEST);
         }
     }