This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 669813f31c Add missing string
669813f31c is described below
commit 669813f31c6bfdc8622bfaadca6a380d3fb1df13
Author: remm <[email protected]>
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 f677d47796..2b4bc9b534 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: [email protected]
For additional commands, e-mail: [email protected]