]> BookStack Code Mirror - bookstack/blobdiff - app/Services/AttachmentService.php
Finished migration of last angular code
[bookstack] / app / Services / AttachmentService.php
index e0ee3a04d727fdf15f1215278518ad591cb34851..592d67e63b5f11ffbe8edc911dc7940a1e715373 100644 (file)
@@ -193,7 +193,7 @@ class AttachmentService extends UploadService
         try {
             $storage->put($attachmentStoragePath, $attachmentData);
         } catch (Exception $e) {
-            throw new FileUploadException('File path ' . $attachmentStoragePath . ' could not be uploaded to. Ensure it is writable to the server.');
+            throw new FileUploadException(trans('errors.path_not_writable', ['filePath' => $attachmentStoragePath]));
         }
         return $attachmentPath;
     }