]> BookStack Code Mirror - bookstack/blobdiff - app/Exports/Controllers/ImportController.php
Merge pull request #5731 from BookStackApp/lexical_jul25
[bookstack] / app / Exports / Controllers / ImportController.php
index a20c341fb02424299c75f3423f7ddc97ea20ee27..b938dac8e29191b045eab9e8022afcf1018da678 100644 (file)
@@ -89,6 +89,8 @@ class ImportController extends Controller
         try {
             $entity = $this->imports->runImport($import, $parent);
         } catch (ZipImportException $exception) {
+            session()->flush();
+            $this->showErrorNotification(trans('errors.import_zip_failed_notification'));
             return redirect($import->getUrl())->with('import_errors', $exception->errors);
         }