]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/ZipImportException.php
Tests: Updated comment test to account for new editor usage
[bookstack] / app / Exceptions / ZipImportException.php
index 2403c514477d224685d359e6fd35ecfdeeba2a13..452365c6e88cb4a64486a51a11a3657eb1b98c03 100644 (file)
@@ -7,6 +7,7 @@ class ZipImportException extends \Exception
     public function __construct(
         public array $errors
     ) {
-        parent::__construct();
+        $message = "Import failed with errors:" . implode("\n", $this->errors);
+        parent::__construct($message);
     }
 }