summaryrefslogtreecommitdiff
path: root/includes/authorize.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-03 02:41:33 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-03 02:41:33 +0000
commit81f6ecd362f279a0e1c468bff68c98ea2571bd2e (patch)
treea7ae0a7fe26f937cc6501adad014646edbb7088c /includes/authorize.inc
parentbfcdaf0607a563d69380f21602ae0d95c00f0402 (diff)
downloadbrdo-81f6ecd362f279a0e1c468bff68c98ea2571bd2e.tar.gz
brdo-81f6ecd362f279a0e1c468bff68c98ea2571bd2e.tar.bz2
#686060 by Crell, David_Rothstein, dww, yoroy, carlos8f, et al: Fixed Explain that the Update manager only works if you have FTP or SSH access to your server
Diffstat (limited to 'includes/authorize.inc')
-rw-r--r--includes/authorize.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/authorize.inc b/includes/authorize.inc
index 5c4d1f0b4..4baf2f152 100644
--- a/includes/authorize.inc
+++ b/includes/authorize.inc
@@ -194,7 +194,12 @@ function authorize_filetransfer_form_validate($form, &$form_state) {
$filetransfer->connect();
}
catch (Exception $e) {
- form_set_error('connection_settings', $e->getMessage());
+ // The format of this error message is similar to that used on the
+ // database connection form in the installer.
+ form_set_error('connection_settings', t('Failed to connect to the server. The server reports the following message: !message For more help installing or updating code on your server, see the <a href="@handbook_url">handbook</a>.', array(
+ '!message' => '<p class="error">' . $e->getMessage() . '</p>',
+ '@handbook_url' => 'http://drupal.org/documentation/install/modules-themes',
+ )));
}
}
}