clusters: add error message to preview

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/783/head
Varun Patil 2023-08-16 08:16:06 -07:00
parent 2bedef3354
commit a6d7ddecdb
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ class ClustersController extends GenericApiController
// If no photos found then return 404
if (0 === \count($photos)) {
return new JSONResponse([], Http::STATUS_NOT_FOUND);
return new JSONResponse([
'message' => 'No photos found in this cluster',
], Http::STATUS_NOT_FOUND);
}
// Put the photos in the correct order