]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/AttachmentService.php
Extend /users API endpoint
[bookstack] / app / Uploads / AttachmentService.php
index b14f49473709647e23fd03afeea406d39c752361..4437897c711e49527035d78478e0a95625b2bcbb 100644 (file)
@@ -202,6 +202,7 @@ class AttachmentService
         try {
             $storage->put($attachmentPath, $attachmentData);
         } catch (Exception $e) {
+            \Log::error('Error when attempting file upload:' . $e->getMessage());
             throw new FileUploadException(trans('errors.path_not_writable', ['filePath' => $attachmentPath]));
         }