mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
report curl errors during install when they are most needed
This commit is contained in:
parent
b6b4ffa68d
commit
ba6765a403
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,7 @@ function setup_post(&$a) {
|
|||
$test = z_fetch_url($siteurl."/setup/testrewrite");
|
||||
if((! $test['success']) || ($test['body'] != 'ok')) {
|
||||
$a->data['url_fail'] = true;
|
||||
$a->data['url_error'] = $test['error'];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -169,6 +170,8 @@ function setup_content(&$a) {
|
|||
if(x($a->data,'url_fail')) {
|
||||
$install_wizard_pass = 3;
|
||||
$wizard_status = t('Could not connect to specified site URL. Possible SSL certificate or DNS issue.');
|
||||
if($a->data['url_error'])
|
||||
$wizard_status .= ' ' . $a->data['url_error'];
|
||||
}
|
||||
|
||||
if(x($a->data,'db_create_failed')) {
|
||||
|
|
Loading…
Reference in a new issue