mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15311] Detail errors a little more
PHPBB3-15311
This commit is contained in:
parent
5a65208341
commit
6d2c815c75
2 changed files with 3 additions and 3 deletions
|
@ -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?',
|
||||||
|
|
Loading…
Add table
Reference in a new issue