diff options
Diffstat (limited to 'src/controller/MaintenanceController.php')
| -rw-r--r-- | src/controller/MaintenanceController.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/controller/MaintenanceController.php b/src/controller/MaintenanceController.php index f3352d8..3b58fe6 100644 --- a/src/controller/MaintenanceController.php +++ b/src/controller/MaintenanceController.php | |||
| @@ -5,7 +5,6 @@ declare(strict_types=1); | |||
| 5 | 5 | ||
| 6 | use Doctrine\ORM\EntityManager; | 6 | use Doctrine\ORM\EntityManager; |
| 7 | use App\Entity\log; | 7 | use App\Entity\log; |
| 8 | use Symfony\Component\Process\Exception\ProcessFailedException; | ||
| 9 | use Symfony\Component\HttpFoundation\File\UploadedFile; | 8 | use Symfony\Component\HttpFoundation\File\UploadedFile; |
| 10 | 9 | ||
| 11 | class MaintenanceController | 10 | class MaintenanceController |
| @@ -61,9 +60,8 @@ class MaintenanceController | |||
| 61 | die; | 60 | die; |
| 62 | } | 61 | } |
| 63 | // exeptions lancées dans Backup::mySQLdump | 62 | // exeptions lancées dans Backup::mySQLdump |
| 64 | catch(ProcessFailedException $e){ // pas d'info $e pour le client | 63 | catch(RuntimeException $e){ // pas d'info $e pour le client7 |
| 65 | header('Location: ' . new URL(['page' => 'maintenance', 'error' => '500'])); | 64 | header('Location: ' . new URL(['page' => 'maintenance', 'get_last_dump' => $e->getMessage()])); |
| 66 | die; | ||
| 67 | } | 65 | } |
| 68 | die; | 66 | die; |
| 69 | } | 67 | } |
