summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <petr/cps@outpost.site>2006-11-07 05:21:33 +0300
committerunknown <petr/cps@outpost.site>2006-11-07 05:21:33 +0300
commitd7d096ace0b6b9400cd2d71b41c7e5ed36281193 (patch)
tree94b9e59e85cc6d381275e3fc0ebc7001d15972c6
parent1283f4f2e41caff8b024016410a30f5edcf9870c (diff)
downloadmariadb-git-d7d096ace0b6b9400cd2d71b41c7e5ed36281193.tar.gz
Fix Bug #22494 Instance Manager: Inconsistent error message wording
Use better wording mysql-test/r/im_life_cycle.result: update result file with new error message server-tools/instance-manager/messages.cc: use better error message (as adviced by paul)
-rw-r--r--mysql-test/r/im_life_cycle.result4
-rw-r--r--server-tools/instance-manager/messages.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/mysql-test/r/im_life_cycle.result b/mysql-test/r/im_life_cycle.result
index e462a8b53d6..c403411c399 100644
--- a/mysql-test/r/im_life_cycle.result
+++ b/mysql-test/r/im_life_cycle.result
@@ -25,7 +25,7 @@ Success: the process has been stopped.
-- 1.1.4.
--------------------------------------------------------------------
START INSTANCE mysqld3;
-ERROR HY000: Bad instance name. Check that the instance with such a name exists
+ERROR HY000: Unknown instance name
START INSTANCE mysqld1;
ERROR HY000: The instance is already started
@@ -33,7 +33,7 @@ ERROR HY000: The instance is already started
-- 1.1.5.
--------------------------------------------------------------------
STOP INSTANCE mysqld3;
-ERROR HY000: Bad instance name. Check that the instance with such a name exists
+ERROR HY000: Unknown instance name
--------------------------------------------------------------------
-- 1.1.6.
diff --git a/server-tools/instance-manager/messages.cc b/server-tools/instance-manager/messages.cc
index 7b32b66fe52..236e33cc900 100644
--- a/server-tools/instance-manager/messages.cc
+++ b/server-tools/instance-manager/messages.cc
@@ -45,7 +45,7 @@ static const char *mysqld_error_message(unsigned sql_errno)
" corresponds to your MySQL Instance Manager version for the right"
" syntax to use";
case ER_BAD_INSTANCE_NAME:
- return "Bad instance name. Check that the instance with such a name exists";
+ return "Unknown instance name";
case ER_INSTANCE_IS_NOT_STARTED:
return "Cannot stop instance. Perhaps the instance is not started, or was"
" started manually, so IM cannot find the pidfile.";