Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2011-06-23 17:05:27 +0400
committerRouslan Placella <rouslan@placella.com>2011-06-23 17:05:27 +0400
commitfd493c6b4cff296646a9c9ea0d0eda6fbcf9a881 (patch)
treee59e3b98afde9a91e29236c2ca28b48f1b74d52e /db_routines.php
parent52ca7974a0fc63aa0f79143e9f19b3eb4b176fc3 (diff)
A meaningful error message for when the execution of a routine fails
Diffstat (limited to 'db_routines.php')
-rw-r--r--db_routines.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/db_routines.php b/db_routines.php
index 838ccb4db3..f046648969 100644
--- a/db_routines.php
+++ b/db_routines.php
@@ -237,7 +237,12 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
// exit;
}
} else if (($GLOBALS['is_ajax_request'] == true)) {
- PMA_ajaxResponse(PMA_message::error(), false);
+ $message = __('Error in processing request') . ' : '
+ . sprintf(__('No routine with name %1$s found in database %2$s'),
+ htmlspecialchars(PMA_backquote($_REQUEST['routine_name'])),
+ htmlspecialchars(PMA_backquote($db)));
+ $message = PMA_message::error($message);
+ PMA_ajaxResponse($message, false);
}
} else if (! empty($_GET['exportroutine']) && ! empty($_GET['routine_name'])) {
/**