mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-06 01:44:11 +02:00
[ticket/15311] Detail errors a little more
PHPBB3-15311
This commit is contained in:
@ -335,7 +335,7 @@ class acp_database
|
|||||||
}
|
}
|
||||||
catch (\phpbb\storage\exception\exception $e)
|
catch (\phpbb\storage\exception\exception $e)
|
||||||
{
|
{
|
||||||
|
// If open fails, just finish
|
||||||
}
|
}
|
||||||
|
|
||||||
flush();
|
flush();
|
||||||
@ -360,8 +360,7 @@ class acp_database
|
|||||||
}
|
}
|
||||||
catch (\phpbb\storage\exception\exception $e)
|
catch (\phpbb\storage\exception\exception $e)
|
||||||
{
|
{
|
||||||
// Error while copying file from storage to temp
|
trigger_error($user->lang['RESTORE_DOWNLOAD_FAIL'] . adm_back_link($this->u_action));
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($matches[1])
|
switch ($matches[1])
|
||||||
|
@ -59,6 +59,7 @@ $lang = array_merge($lang, array(
|
|||||||
'FILE_WRITE_FAIL' => 'Unable to write file to storage folder.',
|
'FILE_WRITE_FAIL' => 'Unable to write file to storage folder.',
|
||||||
'FULL_BACKUP' => 'Full',
|
'FULL_BACKUP' => 'Full',
|
||||||
|
|
||||||
|
'RESTORE_DOWNLOAD_FAIL' => 'Error while copying file from storage to local temporary folder.',
|
||||||
'RESTORE_FAILURE' => 'The backup file may be corrupt.',
|
'RESTORE_FAILURE' => 'The backup file may be corrupt.',
|
||||||
'RESTORE_OPTIONS' => 'Restore options',
|
'RESTORE_OPTIONS' => 'Restore options',
|
||||||
'RESTORE_SELECTED_BACKUP' => 'Are you sure you want to restore the selected backup?',
|
'RESTORE_SELECTED_BACKUP' => 'Are you sure you want to restore the selected backup?',
|
||||||
|
Reference in New Issue
Block a user