summaryrefslogtreecommitdiff
path: root/includes/authorize.inc
diff options
context:
space:
mode:
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',
+ )));
}
}
}