From 81f6ecd362f279a0e1c468bff68c98ea2571bd2e Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 3 Jan 2011 02:41:33 +0000 Subject: #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 --- includes/authorize.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/authorize.inc') 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 handbook.', array( + '!message' => '

' . $e->getMessage() . '

', + '@handbook_url' => 'http://drupal.org/documentation/install/modules-themes', + ))); } } } -- cgit v1.2.3