You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/10/17 08:44:26 UTC
[tomcat] branch 8.5.x updated: Add missing string
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 0ebce004c4 Add missing string
0ebce004c4 is described below
commit 0ebce004c4229363515864f3a96c51de43ed4c70
Author: remm <re...@apache.org>
AuthorDate: Tue Oct 17 10:41:56 2023 +0200
Add missing string
---
java/org/apache/catalina/manager/host/HostManagerServlet.java | 2 +-
java/org/apache/catalina/manager/host/LocalStrings.properties | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/manager/host/HostManagerServlet.java b/java/org/apache/catalina/manager/host/HostManagerServlet.java
index c9ce8398f0..b869270215 100644
--- a/java/org/apache/catalina/manager/host/HostManagerServlet.java
+++ b/java/org/apache/catalina/manager/host/HostManagerServlet.java
@@ -621,7 +621,7 @@ public class HostManagerServlet extends HttpServlet implements ContainerServlet
// catch InstanceNotFoundException when StoreConfig is not enabled instead of printing
// the failure message
if (e instanceof InstanceNotFoundException) {
- writer.println("Please enable StoreConfig to use this feature.");
+ writer.println(smClient.getString("hostManagerServlet.noStoreConfig"));
} else {
writer.println(smClient.getString("hostManagerServlet.exception", e.toString()));
}
diff --git a/java/org/apache/catalina/manager/host/LocalStrings.properties b/java/org/apache/catalina/manager/host/LocalStrings.properties
index 5e549f3796..8be8a004dc 100644
--- a/java/org/apache/catalina/manager/host/LocalStrings.properties
+++ b/java/org/apache/catalina/manager/host/LocalStrings.properties
@@ -31,6 +31,7 @@ hostManagerServlet.listed=OK - Listed hosts
hostManagerServlet.managerXml=FAIL - Couldn't install manager.xml
hostManagerServlet.noCommand=FAIL - No command was specified
hostManagerServlet.noHost=FAIL - Host name [{0}] does not exist
+hostManagerServlet.noStoreConfig=FAIL - Please enable StoreConfig to use this feature
hostManagerServlet.noWrapper=Container has not called setWrapper() for this servlet
hostManagerServlet.persist=persist: Persisting current configuration
hostManagerServlet.persistFailed=FAIL - Failed to persist configuration
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org